| Modifier and Type | Field and Description |
|---|---|
| private ArrayDeque | |
| private static final Object |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | clear()
Implements org. |
| private T | |
| public int | depth()
Implements org. |
| public T | getCurrent()
Implements org. |
| public boolean | isEmpty()
Implements org. |
| public T | pop()
Implements org. |
| public void | push(T newCurrent)
Implements org. |
| private Deque |
| internalStack | back to summary |
|---|---|
| private ArrayDeque<E> internalStack | |
| NULL_TOKEN | back to summary |
|---|---|
| private static final Object NULL_TOKEN | |
| StandardStack | back to summary |
|---|---|
| public StandardStack() | |
| clear | back to summary |
|---|---|
| public void clear() Implements org. Doc from org. Remove all elements from the stack
| |
| convert | back to summary |
|---|---|
| private T convert(final Object internalStoredObject) | |
| depth | back to summary |
|---|---|
| public int depth() Implements org. Doc from org. How many elements are currently on the stack?
| |
| getCurrent | back to summary |
|---|---|
| public T getCurrent() Implements org. Doc from org. The element currently at the top of the stack
| |
| isEmpty | back to summary |
|---|---|
| public boolean isEmpty() Implements org. Doc from org. Are there no elements currently in the stack?
| |
| pop | back to summary |
|---|---|
| public T pop() Implements org. Doc from org. Pop (remove and return) the current element off the stack
| |
| push | back to summary |
|---|---|
| public void push(T newCurrent) Implements org. Doc from org. Push the new element on the top of the stack
| |
| stackInstanceExpected | back to summary |
|---|---|
| private Deque | |