DATA1TYPE - First type.DATA2TYPE - Second type.@Immutable public final class ReadonlyPair<DATA1TYPE,DATA2TYPE> extends Object implements IReadonlyPair<DATA1TYPE,DATA2TYPE>
Wrapper.| Constructor and Description |
|---|
ReadonlyPair(IReadonlyPair<? extends DATA1TYPE,? extends DATA2TYPE> rhs) |
ReadonlyPair(T2 aFirst,
U2 aSecond) |
| Modifier and Type | Method and Description |
|---|---|
static <T,U> IReadonlyPair<T,U> |
create(T aFirst,
U aSecond) |
boolean |
equals(Object o) |
DATA1TYPE |
getFirst() |
DATA2TYPE |
getSecond() |
int |
hashCode() |
String |
toString() |
public ReadonlyPair(@Nonnull IReadonlyPair<? extends DATA1TYPE,? extends DATA2TYPE> rhs)
@Nullable public DATA1TYPE getFirst()
getFirst in interface IReadonlyPair<DATA1TYPE,DATA2TYPE>null.@Nullable public DATA2TYPE getSecond()
getSecond in interface IReadonlyPair<DATA1TYPE,DATA2TYPE>null.@Nonnull public static <T,U> IReadonlyPair<T,U> create(@Nullable T aFirst, @Nullable U aSecond)
Copyright © 2014 Philip Helger. All rights reserved.