|
Apache Tomcat 7.0.4 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.jasper.util.JspQueue<T>
public class JspQueue<T>
The JspQueue is supposed to hold a set of instances in sorted order. Sorting order is determined by the instances' content. As this content may change during instance lifetime, the Queue must be cheap to update - ideally in constant time. Access to the first element in the queue must happen in constant time. Only a minimal set of operations is implemented.
Constructor Summary | |
---|---|
JspQueue()
Initialize empty queue. |
Method Summary | |
---|---|
void |
makeYoungest(Entry<T> candidate)
Moves the candidate to the front of the queue. |
T |
pop()
Removes the head of the queue and returns its content. |
Entry<T> |
push(T object)
Adds an object to the end of the queue and returns the entry created for said object. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public JspQueue()
Method Detail |
---|
public Entry<T> push(T object)
object
- the object to append to the end of the list.
public T pop()
public void makeYoungest(Entry<T> candidate)
candidate
- the entry to move to the front of the queue.
|
Apache Tomcat 7.0.4 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |