Interface LinkedList<E>

All Known Implementing Classes:
EmptyList, LinkedListImpl

public interface LinkedList<E>
  • Method Details

    • addHead

      void addHead(E e)
    • addTail

      void addTail(E e)
    • get

      E get(int position)
    • poll

      E poll()
    • peek

      E peek()
    • iterator

      LinkedListIterator<E> iterator()
    • clear

      void clear()
    • size

      int size()
    • clearID

      void clearID()
    • setNodeStore

      void setNodeStore(NodeStore<E> store)
      this makes possibl to use removeWithID(String, long)
    • removeWithID

      E removeWithID(String listID, long id)
      you need to call setNodeStore(NodeStore) before you are able to call this method.
    • forEach

      void forEach(Consumer<E> consumer)