Source of 3.8.java


  1: // @author Frank M. Carrano, Timothy M. Henry
  2: // @version 5.0
  3:         private class Node
  4:         {
  5:            private T    data; // Entry in bag
  6:            private Node next; // Link to next node

  8:                 private Node(T dataPortion)
  9:                 {
 10:                         this(dataPortion, null);        
 11:                 } // end constructor
 12:                 
 13:                 private Node(T dataPortion, Node nextNode)
 14:                 {
 15:                         data = dataPortion;
 16:                         next = nextNode;        
 17:                 } // end constructor
 18:         } // end Node