S - The type of the first element of the pair.T - The type of the second element of the pair.public class Pair<S,T>
extends java.lang.Object
| Constructor and Description |
|---|
Pair(S first,
T second)
Construct a pair object.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object o) |
S |
first()
Get the first element of this pair.
|
int |
hashCode() |
T |
second()
Get the second element of this pair.
|
java.lang.String |
toString() |
public S first()
public T second()
public java.lang.String toString()
toString in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object o)
equals in class java.lang.Object