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>
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal A
_1()
Access the first element of the product.private A
hardMemo()
Returns a P1 that remembers its value.softMemo()
Likememo
, but the memoized value is wrapped into aSoftReference
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
-
Field Details
-
fa
-
value
-
-
Constructor Details
-
Memo
-
-
Method Details
-
_1
Description copied from class:P1
Access the first element of the product. -
computeValue
-
hardMemo
Description copied from class:P1
Returns a P1 that remembers its value. -
softMemo
Description copied from class:P1
Likememo
, but the memoized value is wrapped into aSoftReference
-
weakMemo
Description copied from class:P1
Likememo
, but the memoized value is wrapped into aWeakReference
-