E
- The type of the stack elements.public class FastStack<E> extends ArrayList<E>
Modifier and Type | Class and Description |
---|---|
static interface |
FastStack.IFastStackDecorator<E>
Decorator used to change values as they come off this stack
|
modCount
Constructor and Description |
---|
FastStack() |
FastStack(Collection<? extends E> c) |
FastStack(int size) |
Modifier and Type | Method and Description |
---|---|
Object |
clone() |
E |
peek()
Gets the entry at the head of the stack
|
E |
pop()
Pops the entry from the end of the stack
|
void |
push(E entry)
Pushes the entry onto the end of the stack
|
void |
setStackDecorator(FastStack.IFastStackDecorator<E> decorator) |
add, add, addAll, addAll, clear, contains, ensureCapacity, get, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, removeRange, retainAll, set, size, subList, toArray, toArray, trimToSize
equals, hashCode
containsAll, toString
finalize, getClass, notify, notifyAll, wait, wait, wait
containsAll, equals, hashCode
public FastStack()
public FastStack(int size)
public FastStack(Collection<? extends E> c)
public void setStackDecorator(FastStack.IFastStackDecorator<E> decorator)
public void push(E entry)
entry
- the entry to addpublic E pop()
public E peek()
Copyright © 2016 The Apache Software Foundation. All rights reserved.