package rebelsky.linear; /** * Nodes for linked queues. QueueNodes 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 QueueNode { // +--------+-------------------------------------------------- // | Fields | // +--------+ /** * The data for this node. */ Object data; /** * The next thing in the queue. */ QueueNode next; // +--------------+-------------------------------------------- // | Constructors | // +--------------+ /** * Build a new QueueNode with particular data and * next. */ public QueueNode(Object _data, QueueNode _next) { this.data = _data; this.next = _next; } // QueueNode(Object, QueueNode) } // class QueueNode