chord.util.tuple.object
Class Trio<T0,T1,T2>
java.lang.Object
chord.util.tuple.object.Trio<T0,T1,T2>
- Type Parameters:
T0 - The type of the 0th object in the 3-tuple.T1 - The type of the 1st object in the 3-tuple.T2 - The type of the 2nd object in the 3-tuple.
- All Implemented Interfaces:
- java.io.Serializable
public class Trio<T0,T1,T2>
- extends java.lang.Object
- implements java.io.Serializable
An ordered 3-tuple of objects.
- Author:
- Mayur Naik (mhn@cs.stanford.edu)
- See Also:
- Serialized Form
|
Field Summary |
T0 |
val0
The 0th object in the ordered 3-tuple. |
T1 |
val1
The 1st object in the ordered 3-tuple. |
T2 |
val2
The 2nd object in the ordered 3-tuple. |
|
Constructor Summary |
Trio(T0 val0,
T1 val1,
T2 val2)
|
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
val0
public T0 val0
- The 0th object in the ordered 3-tuple.
val1
public T1 val1
- The 1st object in the ordered 3-tuple.
val2
public T2 val2
- The 2nd object in the ordered 3-tuple.
Trio
public Trio(T0 val0,
T1 val1,
T2 val2)
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals in class java.lang.Object
hashCode
public int hashCode()
- Overrides:
hashCode in class java.lang.Object
toString
public java.lang.String toString()
- Overrides:
toString in class java.lang.Object