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.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public TFirst getFirst()
public void setFirst(TFirst value)
public TSecond getSecond()
public void setSecond(TSecond value)