U
- The type of the first element of the pairV
- The type of the second element of the pairpublic class Pair<U,V> extends Object
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object object)
Indicates whether some other object is "equal to" this one.
|
U |
getU()
Return the first object of the pair
|
V |
getV()
Return the second object of the pair
|
int |
hashCode()
Returns a hash code value for the object.
|
public U getU()
public V getV()
public int hashCode()
java.util.Hashtable
.hashCode
in class Object
equals(java.lang.Object)
,
Hashtable
public boolean equals(Object object)
equals
in class Object
object
- the reference object with which to compare.true
if this object is the same as the object
argument; false
otherwise.hashCode()