Interface LinkedListEntry<E,​T extends LinkedListEntry<E,​T>>

    • Method Detail

      • getElement

        E getElement()
        Retrieves the element stored at this position in the list.
        Returns:
        the element.
      • getPrev

        @Nullable T getPrev()
        Retrieves the previous entry in the list, or null if this is the first entry.
        Returns:
        the previous entry or null.
      • setPrev

        void setPrev​(@Nullable T prev)
        Sets the predecessor of this entry.
        Parameters:
        prev - the new predecessor.
      • getNext

        @Nullable T getNext()
        Retrieves the next entry in the list, or null if this is the last entry.
        Returns:
        the next entry or null.
      • setNext

        void setNext​(@Nullable T next)
        Sets the successor of this entry.
        Parameters:
        next - the new successor.