edu.rice.comp211.laundry.list
Class BiList.Node<T>

java.lang.Object
  extended by edu.rice.comp211.laundry.list.BiList.Node<T>
Type Parameters:
T - the type of element being held
Enclosing class:
BiList<T>

private static class BiList.Node<T>
extends java.lang.Object

Static nested Node class. Embedded as nested class to hide access.


Field Summary
(package private)  T item
          The element held by this node
(package private)  BiList.Node<T> pred
          The predecessor and successor nodes
(package private)  BiList.Node<T> succ
          The predecessor and successor nodes
 
Constructor Summary
BiList.Node()
          Constructor that creates an empty, self-referencing node that is used to represent an empty list.
BiList.Node(T i, BiList.Node<T> p, BiList.Node<T> s)
          Constructor
 
Method Summary
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

item

T item
The element held by this node


pred

BiList.Node<T> pred
The predecessor and successor nodes


succ

BiList.Node<T> succ
The predecessor and successor nodes

Constructor Detail

BiList.Node

BiList.Node(T i,
            BiList.Node<T> p,
            BiList.Node<T> s)
Constructor

Parameters:
i - the element held
p - the predecessor node
s - the successor node.

BiList.Node

BiList.Node()
Constructor that creates an empty, self-referencing node that is used to represent an empty list.