public class Triple<T1,T2,T3> extends Object implements Comparable<Triple<T1,T2,T3>>, Serializable, PrettyLoggable
Modifier and Type | Method and Description |
---|---|
List<Object> |
asList() |
int |
compareTo(Triple<T1,T2,T3> another) |
boolean |
equals(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,
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() |
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 static <X,Y,Z> Triple<X,Y,Z> makeTriple(X x, Y y, Z z)
public void prettyLog(Redwood.RedwoodChannels channels, 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.