Class DoublyLinkedList<T>

    • Constructor Detail

      • DoublyLinkedList

        public DoublyLinkedList()
    • Method Detail

      • addFirst

        public void addFirst​(T value)
      • addLast

        public void addLast​(T value)
      • removeFirst

        public T removeFirst()
      • removeLast

        public T removeLast()
      • remove

        public boolean remove​(T item)
      • size

        public int size()
      • push

        public void push​(T item)
        Specified by:
        push in interface Stack<T>
      • peek

        public T peek()
        Specified by:
        peek in interface Stack<T>
      • pop

        public T pop()
        Specified by:
        pop in interface Stack<T>
      • isEmpty

        public boolean isEmpty()
        Specified by:
        isEmpty in interface Stack<T>
      • clear

        public void clear()
        Specified by:
        clear in interface Stack<T>
      • synchronizedAddFirst

        public void synchronizedAddFirst​(T item)
      • synchronizedAddLast

        public void synchronizedAddLast​(T item)
      • synchronizedRemove

        public boolean synchronizedRemove​(T item)
      • synchronizedRemoveFirst

        public T synchronizedRemoveFirst()
      • synchronizedRemoveLast

        public T synchronizedRemoveLast()