public class Pair<V1,V2> extends Object
Modifier and Type | Field and Description |
---|---|
V1 |
first
The first element in the pair.
|
V2 |
second
The second element in the pair.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(@Nullable Object o) |
int |
hashCode() |
static <V1,V2> Pair<V1,V2> |
of(V1 v1,
V2 v2) |
String |
toString() |
public final V1 first
public final V2 second
public static <V1,V2> Pair<V1,V2> of(V1 v1, V2 v2)
@SideEffectFree public String toString()