Package mondrian.util

Class ArrayStack<E>

Type Parameters:
E - Element type
All Implemented Interfaces:
Serializable, Cloneable, Iterable<E>, Collection<E>, List<E>, RandomAccess

public class ArrayStack<E> extends ArrayList<E>
Stack implementation based on ArrayList.

More efficient than Stack, which extends Vector and is therefore synchronized whether you like it or not.

Author:
jhyde
See Also:
  • Constructor Details

    • ArrayStack

      public ArrayStack()
      Default constructor.
    • ArrayStack

      public ArrayStack(ArrayStack<E> toCopy)
      Copy Constructor
      Parameters:
      toCopy - Instance of ArrayStack to copy.
  • Method Details