|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.groiss.ds.Triple<F,S,T>
public class Triple<F,S,T>
A Triple is an object that contains three other objects. It is most commonly used for conveniently storing and passing triples of objects.
Field Summary | |
---|---|
F |
first
The first object. |
S |
second
The second object. |
T |
third
The third object. |
Constructor Summary | |
---|---|
Triple()
|
|
Triple(F first,
S second,
T third)
Constructor for holding a pair of objects. |
Method Summary | ||
---|---|---|
boolean |
equals(java.lang.Object obj)
|
|
static
|
from(F first,
S second,
T third)
|
|
int |
hashCode()
|
|
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public F first
public S second
public T third
Constructor Detail |
---|
public Triple()
public Triple(F first, S second, T third)
Method Detail |
---|
public java.lang.String toString()
toString
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public static <F,S,T> Triple<F,S,T> from(F first, S second, T third)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |