com.gargoylesoftware.base.trace

Class TraceItemQueue

public class TraceItemQueue extends Object

Internal use only.

.

Version: $Revision: 1.7 $

Author: Mike Bowler

Field Summary
TraceItemfirstItem_
intitemCount_
TraceItemlastItem_
Constructor Summary
TraceItemQueue()
Method Summary
protected voidassertNotNull(String fieldName, Object fieldValue)
Verify that the specified value is not null.
voidcheckValidity()
TraceItempop()
Return the next item on the queue or null if the queue is empty
voidpush(TraceItem item)
intsize()
StringtoString()

Field Detail

firstItem_

private TraceItem firstItem_

itemCount_

private int itemCount_

lastItem_

private TraceItem lastItem_

Constructor Detail

TraceItemQueue

public TraceItemQueue()

Method Detail

assertNotNull

protected final void assertNotNull(String fieldName, Object fieldValue)
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

checkValidity

private void checkValidity()

pop

public TraceItem pop()
Return the next item on the queue or null if the queue is empty

Returns: The next item or null.

push

public void push(TraceItem item)

Parameters: item The item to push.

size

public int size()

Returns: the number of items in the queue.

toString

public String toString()

Returns: The string representation of this object.