Source of Pair.java


  1: /**
  2:    @author Frank M. Carrano
  3:    @author Timothy M. Henry
  4:    @version 5.0
  5: */
  6: public class Pair<S, T>
  7: {
  8:    private S first;
  9:    private T second;
 10:    
 11:    public Pair(S firstItem, T secondItem)
 12:    {
 13:       first = firstItem;
 14:       second = secondItem;
 15:    } // end constructor
 16:    
 17:    public String toString()
 18:    {
 19:       return "(" + first + ", " + second + ")";
 20:    } // end toString
 21: } // end Pair