|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object cmu.survey.Pair<T1,T2>
public class Pair<T1,T2>
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 |
---|
public T1 item1
public T2 item2
Constructor Detail |
---|
public Pair()
public Pair(T1 a, T2 b)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |