DATA1TYPE - First type.DATA2TYPE - Second type.@NotThreadSafe public final class Pair<DATA1TYPE,DATA2TYPE> extends Object implements IMutablePair<DATA1TYPE,DATA2TYPE>, com.helger.commons.lang.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() |
com.helger.commons.state.EChange |
setFirst(DATA1TYPE aFirst)
Set the first value.
|
com.helger.commons.state.EChange |
setSecond(DATA2TYPE aSecond)
Set the second value.
|
String |
toString() |
@Nonnull public com.helger.commons.state.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 com.helger.commons.state.EChange setSecond(@Nullable DATA2TYPE aSecond)
IMutablePairsetSecond in interface IMutablePair<DATA1TYPE,DATA2TYPE>aSecond - The second value. May be null depending on the
implementation.EChangeCopyright © 2017–2020 Philip Helger. All rights reserved.