org.freehep.util
Class FastStack

java.lang.Object
  extended by java.util.AbstractCollection<E>
      extended by java.util.AbstractList<E>
          extended by java.util.ArrayList
              extended by org.freehep.util.FastStack
All Implemented Interfaces:
Serializable, Cloneable, Iterable, Collection, List, RandomAccess

public class FastStack
extends ArrayList

Unsynchronized version of a Stack.

Author:
Mark Donszelmann
See Also:
Serialized Form

Field Summary
 
Fields inherited from class java.util.AbstractList
modCount
 
Constructor Summary
FastStack()
           
FastStack(int initialCapacity)
           
 
Method Summary
 Object peek()
           
 Object pop()
           
 Object push(Object item)
           
 
Methods inherited from class java.util.ArrayList
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, trimToSize
 
Methods inherited from class java.util.AbstractList
equals, hashCode
 
Methods inherited from class java.util.AbstractCollection
containsAll, toString
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.List
containsAll, equals, hashCode
 

Constructor Detail

FastStack

public FastStack()

FastStack

public FastStack(int initialCapacity)
Method Detail

push

public Object push(Object item)

pop

public Object pop()

peek

public Object peek()


Copyright © 2012. All Rights Reserved.