F - The type of the first objectS - The type of the second objectpublic class Pair<F,S>
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
F |
first
The first object.
|
S |
second
The second object.
|
| Constructor and Description |
|---|
Pair(F first,
S second)
Creates a new pair.
|
| Modifier and Type | Method and Description |
|---|---|
static <F,S> Pair<F,S> |
create(F first,
S second)
Creates a new pair.
|
boolean |
equals(java.lang.Object obj) |
int |
hashCode() |
public final F first
public final S second
public static <F,S> Pair<F,S> create(F first, S second)
F - The type of the first objectS - The type of the second objectfirst - The first object as an instance of the generic type Fsecond - The second object as an instance of the generic type SPair. The pair
may not be nullpublic final int hashCode()
hashCode in class java.lang.Objectpublic final boolean equals(java.lang.Object obj)
equals in class java.lang.Object