public final class Pair<X,Y>
extends java.lang.Object
Constructor and Description |
---|
Pair(X x,
Y y)
Constructor: an instance (x, y).
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object ob)
Return true iff ob is an instance of Pair with the same values.
|
X |
getFirst()
Return the first object in this Pair.
|
Y |
getSecond()
Return the second object in this Pair.
|
int |
hashCode()
Return a hash code based on both values in this obbject.
|
public X getFirst()
public Y getSecond()
public boolean equals(java.lang.Object ob)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object