|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--javautils.dispensers.AbstractDispenser | +--javautils.dispensers.Stack
LIFO stack.
Constructor Summary | |
Stack()
|
|
Stack(java.util.Collection c)
|
Method Summary | |
static Stack |
newAllRight(java.util.List l)
|
java.lang.Object |
pop()
Chooses the next element to be processed, removes it from the dispenser, and returns the element. |
void |
push(java.lang.Object o)
Adds a new element into the dispenser. |
void |
set(int offset,
java.lang.Object o)
|
void |
set(java.lang.Object o)
|
int |
size()
Number of elements in the dispenser. |
java.lang.Object |
top()
|
java.lang.Object |
top(int offset)
|
Methods inherited from class javautils.dispensers.AbstractDispenser |
isEmpty, notEmpty, pushAll, pushAll, pushAllRight |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public Stack()
public Stack(java.util.Collection c)
Method Detail |
public static Stack newAllRight(java.util.List l)
public int size()
Dispenser
Number of elements in the dispenser.
public void push(java.lang.Object o)
Dispenser
Adds a new element into the dispenser.
public java.lang.Object pop()
Dispenser
Chooses the next element to be processed, removes it from the dispenser, and returns the element.
public java.lang.Object top()
public java.lang.Object top(int offset)
public void set(java.lang.Object o)
public void set(int offset, java.lang.Object o)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |