| Modifier and Type | Method and Description |
|---|---|
A |
first() |
A |
getFirst() |
B |
getSecond() |
static <A,B> Pair<A,B> |
of(A first,
B second)
Shorter syntax than the default constructor, allowing the compiler to discern the object types.
|
B |
second() |