org.apache.openejb.util
Class ArrayStack

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

public final class ArrayStack
extends ArrayList
implements Stack

See Also:
Serialized Form

Field Summary
 
Fields inherited from class java.util.AbstractList
modCount
 
Constructor Summary
ArrayStack()
           
 
Method Summary
 Object peek()
           
 Object pop()
           
 Object push(Object item)
           
 void setSize(int newSize)
           
 
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 org.apache.openejb.util.Stack
size
 
Methods inherited from interface java.util.List
containsAll, equals, hashCode
 

Constructor Detail

ArrayStack

public ArrayStack()
Method Detail

setSize

public void setSize(int newSize)

push

public Object push(Object item)
Specified by:
push in interface Stack

pop

public Object pop()
Specified by:
pop in interface Stack

peek

public Object peek()


Copyright © 1999-2011 The Apache OpenEJB development community. All Rights Reserved.