Class Stack<T>


  • public class Stack<T>
    extends Object
    Simple Stack (LIFO queue).
    • Field Detail

      • EMPTY

        public static final Stack EMPTY
    • Constructor Detail

      • Stack

        public Stack()
    • Method Detail

      • push

        public void push​(T o)
      • pop

        public T pop()
      • replaceTop

        public T replaceTop​(T value)
      • peek

        public T peek()
      • isEmpty

        public boolean isEmpty()
      • size

        public int size()
      • getList

        public List<T> getList()