Method Summary |
|
final public void | clear() Clears the stack. |
public Object | clone() |
public boolean | isEmpty() Tests if this stack is empty. |
final public boolean | peek() Looks at the object at the top of this stack without removing it
from the stack. |
final public boolean | peekOrFalse() Looks at the object at the top of this stack without removing it
from the stack. |
final public boolean | peekOrTrue() Looks at the object at the top of this stack without removing it
from the stack. |
final public boolean | pop() Removes the object at the top of this stack and returns that
object as the value of this function. |
final public boolean | popAndTop() Removes the object at the top of this stack and returns the
next object at the top as the value of this function. |
final public boolean | push(boolean val) Pushes an item onto the top of this stack.
Parameters: val - the boolean to be pushed onto this stack. |
final public void | setTop(boolean b) |
final public int | size() Get the length of the list. |