X - The type of the first object in this PairY - The type of the second object in this Pairpublic final class Pair<X,Y>
extends java.lang.Object
| Constructor and Description |
|---|
Pair(X x,
Y y)
Constructor: a pair (x, y).
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object o) |
X |
getFirst()
Return the first object in this Pair.
|
Y |
getSecond()
Return the second object in this Pair.
|
int |
hashCode() |
public X getFirst()
public Y getSecond()
public boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Object