F - first object typeS - second object typepublic class Pair<F,S> extends Object
| Modifier | Constructor and Description |
|---|---|
protected |
Pair(F first,
S second) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object other) |
int |
hashCode() |
static <F,S> Pair<F,S> |
of(F first,
S second)
Creates a pair object
|
public static <F,S> Pair<F,S> of(F first, S second)
first - must be non-nullsecond - must be non-null