Package MediaPlayer

Class LinkedList.Node

  • Enclosing class:
    LinkedList<E>

    protected class LinkedList.Node
    extends java.lang.Object
    Node class for the LinkedList Contains data and a reference to the next node
    • Constructor Summary

      Constructors 
      Constructor Description
      Node​(E data)
      Constructor for the Node class
      Node​(E data, LinkedList.Node next)
      Constructor for the Node class
    • Method Summary

      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • Node

        public Node​(E data)
        Constructor for the Node class
        Parameters:
        data - The data to store in this node
      • Node

        public Node​(E data,
                    LinkedList.Node next)
        Constructor for the Node class
        Parameters:
        data - The data to store in this node
        next - The reference to the next node