Uses of Interface
fj.function.Effect1
-
Packages that use Effect1 Package Description fj Types that set the premise for the existence of Functional Java.fj.control.parallel Parallelization strategies.fj.data Common algebraic data types.fj.function A prelude of commonly used first-class functions -
-
Uses of Effect1 in fj
Methods in fj that return Effect1 Modifier and Type Method Description static <A,B>
Effect1<B>Effect. contramap(Effect1<A> e1, F<B,A> f)A contra-variant functor on effect.static <A> Effect1<A>Effect. lazy(F<A,Unit> f)Methods in fj with parameters of type Effect1 Modifier and Type Method Description static <A,B>
Effect1<B>Effect. contramap(Effect1<A> e1, F<B,A> f)A contra-variant functor on effect.static <A> F<A,Unit>Effect. f(Effect1<A> e1)Returns a function for the given effect. -
Uses of Effect1 in fj.control.parallel
Methods in fj.control.parallel that return Effect1 Modifier and Type Method Description static <A> Effect1<java.util.concurrent.Future<A>>Strategy. 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 Effect1 Modifier and Type Method Description <A> F<Effect1<A>,Actor<A>>ParModule. actor()A first-class constructor of actors.<A> F<Effect1<A>,Actor<A>>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 Effect1 Modifier and Type Method Description static <A> Actor<A>Actor. actor(Strategy<Unit> s, Effect1<A> e)Creates a new Actor that uses the given parallelization strategy and has the given side-effect.<A> Actor<A>ParModule. actor(Effect1<A> e)Creates a concurrent actor that is guaranteed to process only one message at a time.<A> Actor<A>ParModule. effect(Effect1<A> e)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<java.lang.Error> e)Provides an error-handling strategy.Strategy<A>Strategy. errorStrategy(Effect1<java.lang.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
Methods in fj.data that return types with arguments of type Effect1 Modifier and Type Method Description static <A> F<Effect1<A>,F<A,Unit>>Conversions. Effect1_F()Methods in fj.data with parameters of type Effect1 Modifier and Type Method Description static <A> F<A,Unit>Conversions. Effect1_F(Effect1<A> e)voidArray. foreachDoEffect(Effect1<A> f)Performs a side-effect for each element of this array.voidEither.LeftProjection. foreachDoEffect(Effect1<A> f)Execute a side-effect on this projection's value if it has one.voidEither.RightProjection. foreachDoEffect(Effect1<B> f)Execute a side-effect on this projection's value if it has one.voidEither3.LeftProjection. foreachDoEffect(Effect1<A> f)voidEither3.MiddleProjection. foreachDoEffect(Effect1<B> f)voidEither3.RightProjection. foreachDoEffect(Effect1<C> f)voidHashMap. foreachDoEffect(Effect1<P2<K,V>> effect)voidList. foreachDoEffect(Effect1<A> f)Performs a side-effect for each element of this list.voidOption. foreachDoEffect(Effect1<A> f)Performs a side-effect for the value of this optional value.voidStream. foreachDoEffect(Effect1<A> f)Performs a side-effect for each element of this stream.voidValidation.FailProjection. foreachDoEffect(Effect1<E> f)Executes a side-effect on the failing value if there is one.voidValidation. 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 Modifier and Type Method Description default <C> Effect1<C>Effect1. contramap(F<C,A> f)static <A> Effect1<A>Effect1. fromF(F<A,Unit> f)default <C> Effect1<C>Effect1. o(F<C,A> f)
-