package rebelsky.list; /** * Nodes for linked lists. Nodes are intended primarily as * a tool for implementation and are therefore not made available * to "the outside world". * * @author Samuel A. Rebelsky * @version 1.0 of October 2004 */ class Node { // +--------+-------------------------------------------------- // | Fields | // +--------+ /** * The data for this node. */ Object data; /** * The next thing in the queue. */ Node next; // +--------------+-------------------------------------------- // | Constructors | // +--------------+ /** * Build a new Node with particular data and * next. */ public Node(Object _data, Node _next) { this.data = _data; this.next = _next; } // Node(Object, Node) } // class Node