| Access | Constructor and Description |
|---|---|
| public | |
| public | ObjectStack(int
Size of block to allocate blocksize)Construct a ObjectVector, using the given block size. |
| public |
| Modifier and Type | Method and Description |
|---|---|
| public Object | Returns: clone of current ObjectStackOverrides com. Returns clone of current ObjectStack |
| public boolean | |
| public Object | 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 Object | 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 Object | 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 Object | |
| public void | |
| public int | |
| public void |
| ObjectStack | back to summary |
|---|---|
| public ObjectStack() Default constructor. Note that the default block size is very small, for small lists. | |
| ObjectStack | back to summary |
|---|---|
| public ObjectStack(int blocksize) Construct a ObjectVector, using the given block size.
| |
| ObjectStack | back to summary |
|---|---|
| public ObjectStack(ObjectStack v) Copy constructor for ObjectStack
| |
| clone | back to summary |
|---|---|
| public Object clone() throws CloneNotSupportedException Overrides com. Returns clone of current ObjectStack
| |
| empty | back to summary |
|---|---|
| public boolean empty() Tests if this stack is empty.
| |
| peek | back to summary |
|---|---|
| public Object peek() Looks at the object at the top of this stack without removing it from the stack.
| |
| peek | back to summary |
|---|---|
| public Object peek(int n) Looks at the object at the position the stack counting down n items.
| |
| pop | back to summary |
|---|---|
| public Object 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 Object push(Object i) Pushes an item onto the top of this stack. | |
| quickPop | back to summary |
|---|---|
| public void quickPop(int n) Quickly pops a number of items from the stack. | |
| search | back to summary |
|---|---|
| public int search(Object o) Returns where an object is on this stack.
| |
| setTop | back to summary |
|---|---|
| public void setTop(Object val) Sets an object at a the top of the statck
| |