| Access | Constructor and Description |
|---|---|
| public | |
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| public Object | Returns: clone of current IntStackOverrides com. Returns clone of current IntStack |
| public boolean | |
| public final int | Returns: the object at the top of this stack.Looks at the object at the top of this stack without removing it from the stack. |
| public int | Returns: the object at n items down.The number of items down, indexed from zero. n)Looks at the object at the position the stack counting down n items. |
| public final int | Returns: The object at the top of this stack.Removes the object at the top of this stack and returns that object as the value of this function. |
| public int | Returns: theitem argument.the int to be pushed onto this stack. i)Pushes an item onto the top of this stack. |
| public final void | |
| public int | Returns: the distance from the top of the stack where the object is] located; the return value-1 indicates that the
object is not on the stack.the desired object. o)Returns where an object is on this stack. |
| public void |
| IntStack | back to summary |
|---|---|
| public IntStack() Default constructor. Note that the default block size is very small, for small lists. | |
| IntStack | back to summary |
|---|---|
| public IntStack(int blocksize) Construct a IntVector, using the given block size.
| |
| IntStack | back to summary |
|---|---|
| public IntStack(IntStack v) Copy constructor for IntStack
| |
| clone | back to summary |
|---|---|
| public Object clone() throws CloneNotSupportedException Overrides com. Returns clone of current IntStack
| |
| empty | back to summary |
|---|---|
| public boolean empty() Tests if this stack is empty.
| |
| peek | back to summary |
|---|---|
| public final int peek() Looks at the object at the top of this stack without removing it from the stack.
| |
| peek | back to summary |
|---|---|
| public int peek(int n) Looks at the object at the position the stack counting down n items.
| |
| pop | back to summary |
|---|---|
| public final int pop() Removes the object at the top of this stack and returns that object as the value of this function.
| |
| push | back to summary |
|---|---|
| public int push(int i) Pushes an item onto the top of this stack.
| |
| quickPop | back to summary |
|---|---|
| public final void quickPop(int n) Quickly pops a number of items from the stack. | |
| search | back to summary |
|---|---|
| public int search(int o) Returns where an object is on this stack.
| |
| setTop | back to summary |
|---|---|
| public void setTop(int val) Sets an object at a the top of the statck
| |