cmu.survey
Class Triple
java.lang.Object
cmu.survey.Triple
public class Triple
- 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 |
java.lang.Object |
item1
|
java.lang.Object |
item2
|
java.lang.Object |
item3
|
Constructor Summary |
Triple()
|
Triple(java.lang.Object item1,
java.lang.Object item2,
java.lang.Object item3)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
item1
public java.lang.Object item1
item2
public java.lang.Object item2
item3
public java.lang.Object item3
Triple
public Triple()
Triple
public Triple(java.lang.Object item1,
java.lang.Object item2,
java.lang.Object item3)