Package fj.data
Class Eval.Always<A>
java.lang.Object
fj.data.Eval<A>
fj.data.Eval.Always<A>
Represents a lazy computation that is evaluated every time when it's requested.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) final Eval.TrampolineEval
<A> Transforms the current instance into a trampoline instance.final A
value()
Evaluates the computation and return its result.
-
Field Details
-
supplier
-
-
Constructor Details
-
Always
-
-
Method Details
-
value
Description copied from class:Eval
Evaluates the computation and return its result. Depending on whether the current instance is lazy or eager the computation may or may not happen at this point. -
asTrampoline
Description copied from class:Eval
Transforms the current instance into a trampoline instance.- Specified by:
asTrampoline
in classEval<A>
-