public class Pair<F,S>
extends java.lang.Object
| Modifier | Constructor and Description |
|---|---|
protected |
Pair(F first,
S second) |
| Modifier and Type | Method and Description |
|---|---|
Pair<F,S> |
copy() |
boolean |
equals(java.lang.Object obj) |
F |
getFirst() |
S |
getSecond() |
int |
hashCode() |
static <F,S> Pair<F,S> |
of(F first,
S second) |
void |
setFirst(F first) |
void |
setSecond(S second) |
Pair<S,F> |
swap() |
java.lang.String |
toString() |
public static <F,S> Pair<F,S> of(F first, S second)
public F getFirst()
public S getSecond()
public void setFirst(F first)
public void setSecond(S second)
public boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Object