com.mhhe.clrs2e
Class LinkedList.Node

java.lang.Object
  |
  +--com.mhhe.clrs2e.LinkedList.Node
Enclosing class:
LinkedList

protected static class LinkedList.Node
extends java.lang.Object

Inner class for nodes of a linked list.


Field Summary
 java.lang.Object info
          An object stored in the node.
 LinkedList.Node next
          Next node in the list.
 LinkedList.Node prev
          Previous node in the list.
 
Constructor Summary
LinkedList.Node()
          Makes an empty node.
LinkedList.Node(java.lang.Object o)
          Makes a node storing an object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

next

public LinkedList.Node next
Next node in the list.


prev

public LinkedList.Node prev
Previous node in the list.


info

public java.lang.Object info
An object stored in the node.

Constructor Detail

LinkedList.Node

public LinkedList.Node()
Makes an empty node.


LinkedList.Node

public LinkedList.Node(java.lang.Object o)
Makes a node storing an object.

Parameters:
o - The object to store.