gshute.ioutil
Class CircularList.Node

java.lang.Object
  |
  +--gshute.ioutil.CircularList.Node

public class CircularList.Node
extends java.lang.Object

A Node is a building block for circular linked lists. It has two public instance variables: data (class Object) and next (class Node).


Field Summary
 java.lang.Object data
          l.data is the data for l.
 CircularList.Node next
          l.next is a reference to the next Node from l.
 
Constructor Summary
CircularList.Node()
          Node() returns a Node with null data and next.
CircularList.Node(java.lang.Object dat)
          Node(dat) returns a Node with data dat and null next.
CircularList.Node(java.lang.Object dat, CircularList.Node l)
          Node(dat, l) returns a Node with data dat and next l.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

data

public java.lang.Object data
l.data is the data for l.

next

public CircularList.Node next
l.next is a reference to the next Node from l.
Constructor Detail

CircularList.Node

public CircularList.Node()
Node() returns a Node with null data and next.

CircularList.Node

public CircularList.Node(java.lang.Object dat)
Node(dat) returns a Node with data dat and null next.

CircularList.Node

public CircularList.Node(java.lang.Object dat,
                         CircularList.Node l)
Node(dat, l) returns a Node with data dat and next l.