com.gargoylesoftware.base.trace
Class TraceItemQueue

java.lang.Object
  extended by com.gargoylesoftware.base.trace.TraceItemQueue

public class TraceItemQueue
extends java.lang.Object

Internal use only.

.

Version:
$Revision: 1.9 $
Author:
Mike Bowler

Field Summary
private  TraceItem firstItem_
           
private  int itemCount_
           
private  TraceItem lastItem_
           
 
Constructor Summary
TraceItemQueue()
           
 
Method Summary
protected  void assertNotNull(java.lang.String fieldName, java.lang.Object fieldValue)
          Verify that the specified value is not null.
private  void checkValidity()
           
 TraceItem pop()
          Return the next item on the queue or null if the queue is empty
 void push(TraceItem item)
           
 int size()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

firstItem_

private TraceItem firstItem_

lastItem_

private TraceItem lastItem_

itemCount_

private int itemCount_
Constructor Detail

TraceItemQueue

public TraceItemQueue()
Method Detail

push

public void push(TraceItem item)
Parameters:
item - The item to push.

pop

public TraceItem 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

public java.lang.String toString()
Overrides:
toString in class java.lang.Object
Returns:
The string representation of this object.

assertNotNull

protected final void assertNotNull(java.lang.String fieldName,
                                   java.lang.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 check
fieldValue - The value of the field to check
Throws:
DetailedNullPointerException - If fieldValue is null