public final class InterchangeablePair<F,S> extends Object
Constructor and Description |
---|
InterchangeablePair(F f,
S s)
Construct pair of values.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
F |
getFirst()
Returns f value within pair.
|
S |
getSecond()
Returns s value within pair.
|
int |
hashCode() |
void |
setFirst(F f)
Set the f value of the pair to a new value.
|
void |
setSecond(S s)
Set the s value of the pair to a new value.
|
String |
toString() |
public F getFirst()
public S getSecond()
public void setFirst(F f)
f
- value to be setpublic void setSecond(S s)
s
- value to be set