|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Stack of Object.
Method Summary | |
java.lang.Object |
get(int index)
Returns the object of this stack with the given index. |
boolean |
isEmpty()
Returns true if this stack is empty, false elsewhere. |
java.lang.Object |
pop()
Pops an Object at the top of the stack and returns it. |
void |
push(java.lang.Object object)
Adds a given Object to the top of this stack. |
int |
size()
Returns the size of this stack. |
Method Detail |
public boolean isEmpty()
public int size()
public java.lang.Object get(int index)
index
- an index (from 0 at root to size - 1 at
top).
public void push(java.lang.Object object)
object
- an Object. May be null.public java.lang.Object pop()
java.lang.IllegalStateException
- if the stack is empty.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |