Class ArrayStack<T>

java.lang.Object
org.eclipse.collections.impl.stack.mutable.ArrayStack<T>
All Implemented Interfaces:
Externalizable, Serializable, Iterable<T>, InternalIterable<T>, OrderedIterable<T>, RichIterable<T>, MutableStack<T>, StackIterable<T>

public class ArrayStack<T> extends Object implements MutableStack<T>, Externalizable
ArrayStack is a MutableStack which contains a FastList of data. ArrayStack iterates from top to bottom (LIFO order). It behaves like FastList in terms of runtime complexity. The method push() is amortized constant time like FastList.add(). The backing data structure grows and shrinks by 50% at a time, and size is constant. ArrayStack does not extend Vector, as does the Java Stack, which was one of the reasons to create this data structure.
See Also: