|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.xmloperator.lambda2.net.impl.StackImpl
Stack implementation.
Constructor Summary | |
StackImpl()
|
|
StackImpl(int initialCapacity)
|
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. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public StackImpl()
public StackImpl(int initialCapacity)
Method Detail |
public boolean isEmpty()
Stack
isEmpty
in interface Stack
public int size()
Stack
size
in interface Stack
public java.lang.Object get(int index)
Stack
get
in interface Stack
index
- an index (from 0 at root to size - 1 at
top).
public void push(java.lang.Object object)
Stack
push
in interface Stack
object
- an Object. May be null.public java.lang.Object pop()
Stack
pop
in interface Stack
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |