Class KnightTour.DoublyLinkedList<E>

java.lang.Object
org.jgrapht.demo.KnightTour.DoublyLinkedList<E>
Type Parameters:
E - type of a value storing in a node.
Enclosing class:
KnightTour

public class KnightTour.DoublyLinkedList<E> extends Object
Implementation of a doubly linked list data structure that is being used for storing a tour.
  • Constructor Details

    • DoublyLinkedList

      public DoublyLinkedList()
  • Method Details

    • getSize

      public int getSize()
    • isEmpty

      public boolean isEmpty()
    • add

      public void add(E element)
      Adds element to the end of the list.
      Parameters:
      element - we want to add.
    • remove

      public void remove()
      Removes tail element.
    • getHead

      public KnightTour.Node<E> getHead()
    • getTail

      public KnightTour.Node<E> getTail()
    • clear

      public void clear()
    • setStartNode

      public void setStartNode(KnightTour.Node<E> startNode)
    • getStartNode

      public KnightTour.Node<E> getStartNode()
    • setSize

      public void setSize(int i)