DATA1TYPE - First type.DATA2TYPE - Second type.DATA3TYPE - Third type.@Immutable public final class Triple<DATA1TYPE,DATA2TYPE,DATA3TYPE> extends Object implements ITriple<DATA1TYPE,DATA2TYPE,DATA3TYPE>
Pair. If you just want to wrap a
single object, look at class Wrapper.| Constructor and Description |
|---|
Triple(IReadonlyTriple<? extends DATA1TYPE,? extends DATA2TYPE,? extends DATA3TYPE> rhs) |
Triple(T2 aFirst,
U2 aSecond,
V2 aThird) |
| Modifier and Type | Method and Description |
|---|---|
static <T,U,V> ITriple<T,U,V> |
create(T aFirst,
U aSecond,
V aThird) |
boolean |
equals(Object o) |
DATA1TYPE |
getFirst() |
DATA2TYPE |
getSecond() |
DATA3TYPE |
getThird() |
int |
hashCode() |
EChange |
setFirst(DATA1TYPE aFirst)
Set the first value.
|
EChange |
setSecond(DATA2TYPE aSecond)
Set the second value.
|
EChange |
setThird(DATA3TYPE aThird)
Set the third value.
|
String |
toString() |
public Triple(@Nonnull IReadonlyTriple<? extends DATA1TYPE,? extends DATA2TYPE,? extends DATA3TYPE> rhs)
@Nullable public DATA1TYPE getFirst()
getFirst in interface IReadonlyTriple<DATA1TYPE,DATA2TYPE,DATA3TYPE>null.@Nonnull public EChange setFirst(@Nullable DATA1TYPE aFirst)
ITriple@Nullable public DATA2TYPE getSecond()
getSecond in interface IReadonlyTriple<DATA1TYPE,DATA2TYPE,DATA3TYPE>null.@Nonnull public EChange setSecond(@Nullable DATA2TYPE aSecond)
ITriple@Nullable public DATA3TYPE getThird()
getThird in interface IReadonlyTriple<DATA1TYPE,DATA2TYPE,DATA3TYPE>null.@Nonnull public EChange setThird(@Nullable DATA3TYPE aThird)
ITripleCopyright © 2006–2014 phloc systems. All rights reserved.