| Modifier and Type | Method and Description |
|---|---|
| public int | |
| public int | |
| public int | |
| public void | |
| public int | |
| public void |
| capacity | back to summary |
|---|---|
| public int capacity() Returns this stack's current capacity.
The capacity may grow with a put operation w/ insufficient | |
| getGrowSize | back to summary |
|---|---|
| public int getGrowSize() Returns the grow size. A stack grows by this size in case a put operation exceeds it's | |
| position | back to summary |
|---|---|
| public int position() Returns the current position of this stack.
Position is in the range: 0 ≤ position < The position equals to the number of elements stored. | |
| position | back to summary |
|---|---|
| public void position(int newPosition) throws IndexOutOfBoundsException Sets the position of this stack.
| |
| remaining | back to summary |
|---|---|
| public int remaining() Returns the remaining elements left before stack will grow about remaining := capacity() - position(); 0 denotes a full stack.
| |
| setGrowSize | back to summary |
|---|---|
| public void setGrowSize(int newGrowSize) Set new {@link #growSize(). | |