Class IndexedStack<E>

  • All Implemented Interfaces:
    Serializable, Cloneable, Iterable<E>, Collection<E>, List<E>, RandomAccess

    public class IndexedStack<E>
    extends Stack<E>
    See Also:
    Serialized Form
    • Field Summary

      • Fields inherited from class Vector

        capacityIncrement, elementCount, elementData
      • Fields inherited from class AbstractList

        modCount
    • Constructor Summary

      Constructors 
      Constructor Description
      IndexedStack()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean contains​(Object elem)  
      E pop()  
      E push​(E item)  
      • Methods inherited from class Stack

        empty, peek, search
      • Methods inherited from class Vector

        add, add, addAll, addAll, addElement, capacity, clear, clone, containsAll, copyInto, elementAt, elements, ensureCapacity, equals, firstElement, forEach, get, hashCode, indexOf, indexOf, insertElementAt, isEmpty, iterator, lastElement, lastIndexOf, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, removeAllElements, removeElement, removeElementAt, removeIf, removeRange, replaceAll, retainAll, set, setElementAt, setSize, size, sort, spliterator, subList, toArray, toArray, toString, trimToSize
      • Methods inherited from class Object

        finalize, getClass, notify, notifyAll, wait, wait, wait
      • Methods inherited from interface Collection

        parallelStream, stream, toArray
    • Constructor Detail

      • IndexedStack

        public IndexedStack()
    • Method Detail

      • push

        public E push​(E item)
        Overrides:
        push in class Stack<E>
      • pop

        public E pop()
        Overrides:
        pop in class Stack<E>
      • contains

        public boolean contains​(Object elem)
        Specified by:
        contains in interface Collection<E>
        Specified by:
        contains in interface List<E>
        Overrides:
        contains in class Vector<E>