Package fj.data
Class Eval.Now<A>
java.lang.Object
fj.data.Eval<A>
fj.data.Eval.Now<A>
Represents an eager computation.
-
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
-
a
-
-
Constructor Details
-
Now
Now(A a)
-
-
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>
-