Uses of Interface
fj.function.Effect1
Packages that use Effect1
Package
Description
Types that set the premise for the existence of Functional Java.
Parallelization strategies.
Common algebraic data types.
A prelude of commonly used first-class functions
-
Uses of Effect1 in fj
-
Uses of Effect1 in fj.control.parallel
Methods in fj.control.parallel that return Effect1Modifier and TypeMethodDescriptionStrategy.discard()
Returns an Effect that waits for a given Future to obtain a value, discarding the value.Methods in fj.control.parallel that return types with arguments of type Effect1Modifier and TypeMethodDescriptionParModule.actor()
A first-class constructor of actors.ParModule.effect()
A first-class constructor of concurrent effects, as actors that don't guarantee ordering of messages.Methods in fj.control.parallel with parameters of type Effect1Modifier and TypeMethodDescriptionstatic <A> Actor
<A> Creates a new Actor that uses the given parallelization strategy and has the given side-effect.<A> Actor
<A> Creates a concurrent actor that is guaranteed to process only one message at a time.<A> Actor
<A> Creates a very fast concurrent effect, as an actor that does not guarantee ordering of its messages.static <A> Strategy
<A> Strategy.errorStrategy
(Strategy<A> s, Effect1<Error> e) Provides an error-handling strategy.Strategy.errorStrategy
(Effect1<Error> e) Provides an error-handling strategy.static <T> Actor
<T> Actor.queueActor
(Strategy<Unit> s, Effect1<T> ea) An Actor equipped with a queue and which is guaranteed to process one message at a time. -
Uses of Effect1 in fj.data
Modifier and TypeMethodDescriptionvoid
Array.foreachDoEffect
(Effect1<A> f) Performs a side-effect for each element of this array.void
Either.LeftProjection.foreachDoEffect
(Effect1<A> f) Execute a side-effect on this projection's value if it has one.void
Either.RightProjection.foreachDoEffect
(Effect1<B> f) Execute a side-effect on this projection's value if it has one.void
Either3.LeftProjection.foreachDoEffect
(Effect1<A> f) void
Either3.MiddleProjection.foreachDoEffect
(Effect1<B> f) void
Either3.RightProjection.foreachDoEffect
(Effect1<C> f) void
HashMap.foreachDoEffect
(Effect1<P2<K, V>> effect) final void
List.foreachDoEffect
(Effect1<A> f) Performs a side-effect for each element of this list.final void
Option.foreachDoEffect
(Effect1<A> f) Performs a side-effect for the value of this optional value.final void
Stream.foreachDoEffect
(Effect1<A> f) Performs a side-effect for each element of this stream.void
Validation.FailProjection.foreachDoEffect
(Effect1<E> f) Executes a side-effect on the failing value if there is one.final void
Validation.foreachDoEffect
(Effect1<T> f) Executes a side-effect on the success value if there is one. -
Uses of Effect1 in fj.function
Methods in fj.function that return Effect1