cmu.survey
Class Pair<T1,T2>

java.lang.Object
  extended by cmu.survey.Pair<T1,T2>

public class Pair<T1,T2>
extends java.lang.Object

This class, and the series of Pair, Triple, and Quadruple, are used for a sort-of ML-like compatibility -- in ML it's easy to return a Tuple of objects -- two objects, from one function, without declaring a new class. This is a lightweight way of returning two or more object where there is little justification for a new class to handle it.


Field Summary
 T1 item1
           
 T2 item2
           
 
Constructor Summary
Pair()
           
Pair(T1 a, T2 b)
           
 
Method Summary
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

item1

public T1 item1

item2

public T2 item2
Constructor Detail

Pair

public Pair()

Pair

public Pair(T1 a,
            T2 b)