|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.myjavatools.lib.foundation.Pair<X,Y>
com.myjavatools.lib.foundation.LazyPair<X,Y>
public class LazyPair<X,Y>
LazyPair<Left, Right> is a pair consisting of key and value; its value won't be calculated until requested. LazyPair is immutable.
Map#Entry| Field Summary |
|---|
| Fields inherited from class com.myjavatools.lib.foundation.Pair |
|---|
left, right |
| Constructor Summary | |
|---|---|
LazyPair(X x,
Function<? super X,Y> f)
Constructor; saves argument and function |
|
| Method Summary | |
|---|---|
Y |
right()
right getter |
| Methods inherited from class com.myjavatools.lib.foundation.Pair |
|---|
equals, getKey, getValue, hashCode, hashCode, left, pairEqual, setValue, swap |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public LazyPair(X x,
Function<? super X,Y> f)
x - Xf - Function| Method Detail |
|---|
public Y right()
right in class Pair<X,Y>
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||