public class Trinity<A,B,C>
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static <A,B,C> Trinity<A,B,C> |
create(A first,
B second,
C third) |
boolean |
equals(java.lang.Object o) |
A |
getFirst() |
static <T> T |
getFirst(Trinity<T,?,?> pair) |
B |
getSecond() |
static <T> T |
getSecond(Trinity<?,T,?> pair) |
C |
getThird() |
static <T> T |
getThird(Trinity<?,?,T> pair) |
int |
hashCode() |
java.lang.String |
toString() |
public final A getFirst()
public final B getSecond()
public final C getThird()
public static <A,B,C> Trinity<A,B,C> create(A first, B second, C third)
public static <T> T getFirst(Trinity<T,?,?> pair)
public static <T> T getSecond(Trinity<?,T,?> pair)
public static <T> T getThird(Trinity<?,?,T> pair)
public final boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public final int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object