public class Pair<F,S>
extends java.lang.Object
Constructor and Description |
---|
Pair(F first,
S second)
Constructs a Pair with two values.
|
Modifier and Type | Method and Description |
---|---|
F |
getFirst()
Gets the first element.
|
S |
getSecond()
Gets the second element.
|
void |
setFirst(F first)
Sets the first element.
|
void |
setSecond(S second)
Sets the second element.
|
java.lang.String |
toString()
Converts to a string.
|
public void setFirst(F first)
first
- Value to be assigned to the first element.getFirst()
public void setSecond(S second)
second
- Value to be assigned to the second element.getSecond()
public java.lang.String toString()
toString
in class java.lang.Object
public F getFirst()
setFirst(F)
public S getSecond()
setSecond(S)