E - The generic type of the elements in the stack.public class LightStack<E> extends ArrayList<E>
ArrayList. The
top of the stack is ArrayList.size() MINUS ONE (1). The bottom of the
stack is index ZERO (0).
Note: Stack does not offer a constructor which may be used
to specify the initial capacity.
modCount| Constructor and Description |
|---|
LightStack(int initialCapacity) |
| Modifier and Type | Method and Description |
|---|---|
E |
peek()
Return the object on the top of the stack.
|
E |
pop()
Remove and return the object at the top of the stack.
|
E |
push(E o)
Push an item onto the stack.
|
add, add, addAll, addAll, clear, clone, contains, ensureCapacity, get, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, removeRange, retainAll, set, size, subList, toArray, toArray, trimToSizeequals, hashCodecontainsAll, toStringfinalize, getClass, notify, notifyAll, wait, wait, waitcontainsAll, equals, hashCodeCopyright © 2006–2019 SYSTAP, LLC DBA Blazegraph. All rights reserved.