T1 - the first element typeT2 - the second element typepublic class Pair<T1,T2> extends Object
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object rhs) |
T1 |
first() |
Pair<T2,T1> |
flip() |
int |
hashCode() |
<R1,R2> Pair<R1,R2> |
map(Function<T1,R1> withFirst,
Function<T2,R2> withSecond) |
static <T1,T2> Pair<T1,T2> |
of(T1 first,
T2 second) |
T2 |
second() |
String |
toString() |
Copyright © 2017. All rights reserved.