Package org.apache.jasper.util
Class FastRemovalDequeue.Entry
- java.lang.Object
-
- org.apache.jasper.util.FastRemovalDequeue.Entry
-
- Enclosing class:
- FastRemovalDequeue<T>
public class FastRemovalDequeue.Entry extends java.lang.ObjectImplementation of a doubly linked list entry. All implementation details are private. For the consumer of the above collection, this is simply garbage in, garbage out.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclearReplaced()Clears the displaced content reference.TgetContent()Returns the content stored in this entry.TgetReplaced()Returns the content that was displaced when this entry was added to a full queue.java.lang.StringtoString()
-
-
-
Method Detail
-
getContent
public final T getContent()
Returns the content stored in this entry.- Returns:
- the content object
-
getReplaced
public final T getReplaced()
Returns the content that was displaced when this entry was added to a full queue.- Returns:
- the displaced content, or
nullif no content was displaced
-
clearReplaced
public final void clearReplaced()
Clears the displaced content reference.
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-