Package fj
Class P1.Memo<A>
- java.lang.Object
-
- fj.P1<A>
-
- fj.P1.Memo<A>
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class fj.P1
P1.Memo<A>, P1.ReferenceMemo<A>, P1.SoftReferenceMemo<A>, P1.WeakReferenceMemo<A>
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description A
_1()
Access the first element of the product.private A
computeValue()
P1<A>
hardMemo()
Returns a P1 that remembers its value.P1<A>
softMemo()
Likememo
, but the memoized value is wrapped into aSoftReference
P1<A>
weakMemo()
Likememo
, but the memoized value is wrapped into aWeakReference
-
Methods inherited from class fj.P1
__1, apply, bind, bind, bind, constant, curry, equals, f, hashCode, join, liftM2, liftM2, map, map_, memo, sequence, sequence, sequence, sequence, sequenceList, toString, traverseEither, traverseList, traverseOption, traverseStream, traverseValidation
-
-
-
-
Method Detail
-
computeValue
private A computeValue()
-
hardMemo
public P1<A> hardMemo()
Description copied from class:P1
Returns a P1 that remembers its value.
-
softMemo
public P1<A> softMemo()
Description copied from class:P1
Likememo
, but the memoized value is wrapped into aSoftReference
-
-