Class ListStack<T>

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Cloneable, java.lang.Iterable<T>, java.util.Collection<T>, java.util.List<T>, java.util.RandomAccess

    public class ListStack<T>
    extends java.util.ArrayList<T>
    See Also:
    Serialized Form
    • Field Summary

      • Fields inherited from class java.util.AbstractList

        modCount
    • Constructor Summary

      Constructors 
      Constructor Description
      ListStack()  
      ListStack​(java.util.Collection<? extends T> list)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      ListStack<T> clone()  
      T getByOffset​(int offset)  
      void insertByOffset​(int offset, T item)  
      T peek()  
      T pop()  
      T pop​(int count)  
      void push​(T item)  
      void removeMultiple​(int count)  
      • Methods inherited from class java.util.ArrayList

        add, add, addAll, addAll, clear, contains, ensureCapacity, equals, forEach, get, hashCode, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, removeIf, removeRange, replaceAll, retainAll, set, size, sort, spliterator, subList, toArray, toArray, trimToSize
      • 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.Collection

        parallelStream, stream, toArray
      • Methods inherited from interface java.util.List

        containsAll
    • Constructor Detail

      • ListStack

        public ListStack()
      • ListStack

        public ListStack​(java.util.Collection<? extends T> list)
    • Method Detail

      • clone

        public ListStack<T> clone()
        Overrides:
        clone in class java.util.ArrayList<T>
      • push

        public void push​(T item)
      • peek

        public T peek()
      • pop

        public T pop()
      • pop

        public T pop​(int count)
      • removeMultiple

        public void removeMultiple​(int count)
      • getByOffset

        public T getByOffset​(int offset)
      • insertByOffset

        public void insertByOffset​(int offset,
                                   T item)