|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjfun.util.Pair
Represents a immutable pair of objects.
Constructor Summary | |
Pair(java.lang.Object f,
java.lang.Object s)
Create a pair. |
Method Summary | |
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()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public Pair(java.lang.Object f, java.lang.Object s)
f
- the first object.s
- the second object.Method Detail |
public java.lang.String toString()
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.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |