public class Tuple<T,P>
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
private T |
key
The first value, or key
|
private P |
value
The second value, or simply value
|
| Constructor and Description |
|---|
Tuple(T key,
P value)
Public constructor.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object o)
Indicates whether some other object is "equal to" this one.
|
T |
getKey()
Getter for
key. |
P |
getValue()
Getter for
value. |
int |
hashCode()
Returns a hash code value for the object.
|
private final T key
private final P value
public boolean equals(java.lang.Object o)
equals in class java.lang.Objecto - The reference object with which to compare.public int hashCode()
hashCode in class java.lang.Object