|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.mina.util.ExpiringStack
public class ExpiringStack
A unbounded stack with expiration.
| Constructor Summary | |
|---|---|
ExpiringStack()
Construct a new, empty stack. |
|
| Method Summary | |
|---|---|
void |
clear()
Clears this stack. |
void |
expireBefore(long time)
|
Object |
first()
Returns the first element of the stack. |
boolean |
isEmpty()
Returns true if the stack is empty. |
Object |
last()
|
Object |
pop()
Pops from this stack. |
void |
push(Object obj)
Push into this stack. |
void |
remove(Object o)
|
int |
size()
Returns the number of elements in the stack. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ExpiringStack()
| Method Detail |
|---|
public void clear()
public Object pop()
null, if this stack is empty or the element is
really null.public void push(Object obj)
public void remove(Object o)
public void expireBefore(long time)
public Object first()
null, if the stack is empty, or the element is
really null.public Object last()
public boolean isEmpty()
true if the stack is empty.
public int size()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||