Uses of Class
org.javimmutable.collections.Computation
-
Uses of Computation in org.javimmutable.collections
Modifier and TypeMethodDescriptionabstract Computation
<T> Computation.apply
(Proc1Throws<T, ? super Exception> proc) Add a step to the computation that executes the procedure on the current value without changing that value.static <T> Computation
<T> Produce aComputation
that simply throws an exception.abstract <U> Computation
<U> Computation.flatMap
(Func1Throws<T, Computation<U>, ? super Exception> func) Add a step to the computation that applies the function to the current value to produce a new computation.abstract <U> Computation
<U> Computation.map
(Func1Throws<T, U, ? super Exception> func) Add a step to the computation that applies the function to the current value to produce a new value.static <T> Computation
<T> Computation.of
(Func0Throws<T, ? super Exception> func) Produce aComputation
that evaluations the function and returns its result.static <T> Computation
<T> Computation.success
(T value) Produce aComputation
that simply returns the value.Modifier and TypeMethodDescriptionabstract <U> Computation
<U> Computation.flatMap
(Func1Throws<T, Computation<U>, ? super Exception> func) Add a step to the computation that applies the function to the current value to produce a new computation.