Package com.gargoylesoftware.base.trace
Class TraceItemQueue
java.lang.Object
com.gargoylesoftware.base.trace.TraceItemQueue
Internal use only.
.- Version:
- $Revision: 1.7 $
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
firstItem_
-
lastItem_
-
itemCount_
private int itemCount_
-
-
Constructor Details
-
TraceItemQueue
public TraceItemQueue()
-
-
Method Details
-
push
- Parameters:
item
- The item to push.
-
pop
Return the next item on the queue or null if the queue is empty- Returns:
- The next item or null.
-
checkValidity
private void checkValidity() -
size
public int size()- Returns:
- the number of items in the queue.
-
toString
-
assertNotNull
protected final void assertNotNull(String fieldName, Object fieldValue) throws DetailedNullPointerException Verify that the specified value is not null. If it is then throw an exception- Parameters:
fieldName
- The name of the field to checkfieldValue
- The value of the field to check- Throws:
DetailedNullPointerException
- If fieldValue is null
-