public class Triple<T1,T2,T3> extends java.lang.Object implements java.lang.Comparable<Triple<T1,T2,T3>>, java.io.Serializable, PrettyLoggable
Modifier and Type | Method and Description |
---|---|
java.util.List<java.lang.Object> |
asList() |
int |
compareTo(Triple<T1,T2,T3> another) |
boolean |
equals(java.lang.Object o) |
T1 |
first() |
int |
hashCode() |
static <X,Y,Z> Triple<X,Y,Z> |
makeTriple(X x,
Y y,
Z z)
Returns a Triple constructed from X, Y, and Z.
|
void |
prettyLog(Redwood.RedwoodChannels channels,
java.lang.String description)
Pretty logs the current object to specific Redwood channels.
|
T2 |
second() |
void |
setFirst(T1 o) |
void |
setSecond(T2 o) |
void |
setThird(T3 o) |
T3 |
third() |
java.lang.String |
toString() |
public T1 first()
public T2 second()
public T3 third()
public void setFirst(T1 o)
public void setSecond(T2 o)
public void setThird(T3 o)
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
public java.util.List<java.lang.Object> asList()
public static <X,Y,Z> Triple<X,Y,Z> makeTriple(X x, Y y, Z z)
public void prettyLog(Redwood.RedwoodChannels channels, java.lang.String description)
prettyLog
in interface PrettyLoggable
channels
- the channels which should be logged to -- all logging calls should
use logging methods on the channels (e.g. channels.log(), etc.)description
- The description of the object. It will potentially identify the
object's functional role or (failing that) its class. This is
typically used as a track name surrounding the contents of this
object.