Class LinkedNodeList<T extends LinkedNode<T>>

  • Direct Known Subclasses:
    SequenceSet

    public class LinkedNodeList<T extends LinkedNode<T>>
    extends Object
    Provides a list of LinkedNode objects.
    Author:
    chirino
    • Constructor Detail

      • LinkedNodeList

        public LinkedNodeList()
    • Method Detail

      • isEmpty

        public boolean isEmpty()
      • addLast

        public void addLast​(T node)
      • addFirst

        public void addFirst​(T node)
      • getHead

        public T getHead()
      • getTail

        public T getTail()
      • clear

        public void clear()
      • rotate

        public T rotate()
        Move the head to the tail and returns the new head node.
        Returns:
      • rotateTo

        public void rotateTo​(T head)
        Move the head to the tail and returns the new head node.
      • size

        public int size()
      • toArrayList

        public ArrayList<T> toArrayList()
        Copies the nodes of the LinkedNodeList to an ArrayList.
        Returns: