| Modifier and Type | Field and Description |
|---|---|
| private int[] | fData
Stack data. |
| private int | fDepth
Stack depth. |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| public int | |
| private void | |
| public int | |
| public int | |
| public void | |
| public void | |
| public int |
| fData | back to summary |
|---|---|
| private int[] fData Stack data. | |
| fDepth | back to summary |
|---|---|
| private int fDepth Stack depth. | |
| IntStack | back to summary |
|---|---|
| public IntStack() | |
| clear | back to summary |
|---|---|
| public void clear() Clears the stack. | |
| elementAt | back to summary |
|---|---|
| public int elementAt(int depth) Returns the element at the specified depth in the stack. | |
| ensureCapacity | back to summary |
|---|---|
| private void ensureCapacity(int size) Ensures capacity. | |
| peek | back to summary |
|---|---|
| public int peek() Peeks at the top of the stack. | |
| pop | back to summary |
|---|---|
| public int pop() Pops a value off of the stack. | |
| back to summary | |
|---|---|
| public void print() Prints the stack. | |
| push | back to summary |
|---|---|
| public void push(int value) Pushes a value onto the stack. | |
| size | back to summary |
|---|---|
| public int size() Returns the size of the stack. | |