|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectutil.Triple<A,B,C>
A - The type of the first element of a triple.B - The type of the second element of a triple.C - The type of the third element of a triple.public class Triple<A,B,C>
A triple of objects of some specified types. Convenient for return values, etc.
| Field Summary | |
|---|---|
A |
a
The first element of the triple. |
B |
b
The second element of the triple. |
C |
c
The third element of the triple. |
| Constructor Summary | |
|---|---|
Triple(A a,
B b,
C c)
|
|
| Method Summary | ||
|---|---|---|
boolean |
equals(Object other)
|
|
int |
hashCode()
|
|
static
|
of(A a,
B b,
C c)
A more readable synonym for triple(A, B, C). |
|
String |
toString()
|
|
static
|
triple(A a,
B b,
C c)
A convenience method so that the types of the elements don't have to be given explicitly. |
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public final A a
public final B b
public final C c
| Constructor Detail |
|---|
public Triple(A a,
B b,
C c)
a - The first element of the triple.b - The second element of the triple.c - The third element of the triple.| Method Detail |
|---|
public static <A,B,C> Triple<A,B,C> triple(A a,
B b,
C c)
A - The type of the first element.B - The type of the second element.C - The type of the third element.a - The first element of the triple.b - The second element of the triple.c - The third element of the triple.
public static <A,B,C> Triple<A,B,C> of(A a,
B b,
C c)
triple(A, B, C).
A - The type of the first element.B - The type of the second element.C - The type of the third element.a - The first element of the triple.b - The second element of the triple.c - The third element of the triple.
public boolean equals(Object other)
equals in class Objectpublic int hashCode()
hashCode in class Objectpublic String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||