DATA1TYPE - First type.DATA2TYPE - Second type.@NotThreadSafe public final class Pair<DATA1TYPE,DATA2TYPE> extends Object implements IMutablePair<DATA1TYPE,DATA2TYPE>, ICloneable<Pair<DATA1TYPE,DATA2TYPE>>
Wrapper.| Constructor and Description |
|---|
Pair() |
Pair(IPair<? extends DATA1TYPE,? extends DATA2TYPE> rhs) |
Pair(T2 aFirst,
U2 aSecond) |
| Modifier and Type | Method and Description |
|---|---|
static <T,U> Pair<T,U> |
create(T aFirst,
U aSecond) |
boolean |
equals(Object o) |
Pair<DATA1TYPE,DATA2TYPE> |
getClone() |
DATA1TYPE |
getFirst() |
DATA2TYPE |
getSecond() |
int |
hashCode() |
EChange |
setFirst(DATA1TYPE aFirst)
Set the first value.
|
EChange |
setSecond(DATA2TYPE aSecond)
Set the second value.
|
String |
toString() |
clone, finalize, getClass, notify, notifyAll, wait, wait, waitgetComparatorFirst, getComparatorSecond@Nonnull public EChange setFirst(@Nullable DATA1TYPE aFirst)
IMutablePairsetFirst in interface IMutablePair<DATA1TYPE,DATA2TYPE>aFirst - The first value. May be null depending on the
implementation.EChange@Nonnull public EChange setSecond(@Nullable DATA2TYPE aSecond)
IMutablePairsetSecond in interface IMutablePair<DATA1TYPE,DATA2TYPE>aSecond - The second value. May be null depending on the
implementation.EChange@Nonnull public Pair<DATA1TYPE,DATA2TYPE> getClone()
getClone in interface ICloneable<Pair<DATA1TYPE,DATA2TYPE>>Copyright © 2014–2017 Philip Helger. All rights reserved.