package linkedlist; /** * Nodes for a linked list. * * @author CSC153 */ class Node { // +--------+----------------------------------------- // | Fields | // +--------+ Object value; Node next; Node preev; // +--------------+----------------------------------- // | Constructors | // +--------------+ public Node(Object value) { this(value, null, null); } // Node(Object) public Node(Object value, Node next) { this(value, next, null); } // Node(Object, Node) public Node(Object value, Node next, Node preev) { this.value = value; this.preev = preev; this.next = next; } // Node(Object, Node, Node) } // class Node