public final class Pair
extends java.lang.Object
implements java.io.Serializable
Constructor and Description |
---|
Pair(java.lang.Object f,
java.lang.Object s)
Create a pair.
|
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
fst()
get the first object in the pair.
|
Pair |
setFst(java.lang.Object f)
Functional update.
|
Pair |
setSnd(java.lang.Object s)
Functional update.
|
java.lang.Object |
snd()
Get the second object in the pair.
|
java.lang.String |
toString() |
public Pair(java.lang.Object f, java.lang.Object s)
f
- the first object.s
- the second object.public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.Object fst()
public java.lang.Object snd()
public Pair setFst(java.lang.Object f)
f
- the new value of the first object.public Pair setSnd(java.lang.Object s)
s
- the new value of the second object.