public class Pair<TFirst,TSecond>
extends java.lang.Object
| Constructor and Description |
|---|
Pair()
Initializes a new instance of the
Pair class. |
Pair(TFirst x,
TSecond y)
Initializes a new instance of the
Pair class. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj) |
TFirst |
getFirst()
Gets the first object in the pair.
|
TSecond |
getSecond()
Gets the second object in the pair.
|
int |
hashCode() |
void |
setFirst(TFirst value)
Gets the first object in the pair.
|
void |
setSecond(TSecond value)
Sets the second object in the pair.
|
java.lang.String |
toString() |
public Pair()
Pair class.public java.lang.String toString()
toString in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic TFirst getFirst()
public void setFirst(TFirst value)
public TSecond getSecond()
public void setSecond(TSecond value)