Uses of Interface
com.github.tonivade.purefun.type.Either
Packages that use Either
Package
Description
-
Uses of Either in com.github.tonivade.purefun.core
Methods in com.github.tonivade.purefun.core that return types with arguments of type EitherModifier and TypeMethodDescriptionFunction1.liftEither()Function2.liftEither()Producer.liftEither()Function1.liftLeft()Function1.liftRight() -
Uses of Either in com.github.tonivade.purefun.effect
Fields in com.github.tonivade.purefun.effect with type parameters of type EitherMethods in com.github.tonivade.purefun.effect that return EitherMethods in com.github.tonivade.purefun.effect that return types with arguments of type EitherModifier and TypeMethodDescriptionPureIO.executeAsync(R env, PureIO.Async<R, E, A> current, PureIOConnection connection, Promise<Either<E, A>> promise) PureIO.race(Executor executor, Kind<PureIO<R, E, ?>, ? extends A> fa, Kind<PureIO<R, E, ?>, ? extends B> fb) static <R,E, A, B>
PureIO<R, E, Either<Tuple2<A, Fiber<PureIO<R, E, ?>, B>>, Tuple2<Fiber<PureIO<R, E, ?>, A>, B>>> PureIO.racePair(Executor executor, Kind<PureIO<R, E, ?>, ? extends A> fa, Kind<PureIO<R, E, ?>, ? extends B> fb) EIO.runAsync()PureIO.runAsync(R env, Kind<PureIO<R, E, ?>, A> current, PureIOConnection connection) PureIO.runAsync(R env, Kind<PureIO<R, E, ?>, A> current, PureIOConnection connection, CallStack<R, E, A> stack, Promise<Either<E, A>> promise) Methods in com.github.tonivade.purefun.effect with parameters of type EitherModifier and TypeMethodDescriptionstatic <E,A> EIO <E, A> EIO.fromEither(Either<E, ? extends A> task) static <R,E, A> PureIO <R, E, A> PureIO.fromEither(Either<E, ? extends A> task) static <R,A> RIO <R, A> RIO.fromEither(Either<Throwable, ? extends A> task) static <A> Task<A> Task.fromEither(Either<Throwable, ? extends A> task) static <T> UIO<T> UIO.fromEither(Either<Throwable, ? extends T> task) static <R,T> URIO <R, T> URIO.fromEither(Either<Throwable, ? extends T> task) Method parameters in com.github.tonivade.purefun.effect with type arguments of type EitherModifier and TypeMethodDescriptionstatic <E,A> EIO <E, A> static <R,E, A> PureIO <R, E, A> static <R,A> RIO <R, A> static <A> Task<A> static <E,A> EIO <E, A> static <R,E, A> PureIO <R, E, A> static <E,A> EIO <E, A> EIO.cancellable(Function1<Consumer1<? super Try<? extends Either<E, ? extends A>>>, EIO<E, Unit>> consumer) static <R,E, A> PureIO <R, E, A> PureIO.cancellable(Function2<R, Consumer1<? super Try<? extends Either<E, ? extends A>>>, PureIO<R, ?, Unit>> consumer) PureIO.executeAsync(R env, PureIO.Async<R, E, A> current, PureIOConnection connection, Promise<Either<E, A>> promise) static <E,A> EIO <E, A> EIO.fromEither(Producer<Either<E, ? extends A>> task) static <R,E, A> PureIO <R, E, A> PureIO.fromEither(Producer<Either<E, ? extends A>> task) static <R,A> RIO <R, A> RIO.fromEither(Producer<Either<Throwable, ? extends A>> task) static <A> Task<A> Task.fromEither(Producer<Either<Throwable, ? extends A>> task) static <R,E, A> PureIO <R, E, A> PureIO.fromPromise(Promise<? extends Either<E, ? extends A>> promise) EIO.liftEither(Function1<? super A, ? extends Either<E, ? extends B>> function) PureIO.liftEither(Function1<? super A, ? extends Either<E, ? extends B>> function) RIO.liftEither(Function1<? super A, ? extends Either<Throwable, ? extends B>> function) Task.liftEither(Function1<? super A, ? extends Either<Throwable, ? extends B>> function) UIO.liftEither(Function1<? super A, ? extends Either<Throwable, ? extends B>> function) URIO.liftEither(Function1<? super A, ? extends Either<Throwable, ? extends B>> function) default voiddefault voidPureIO.provideAsync(R env, Executor executor, Consumer1<? super Try<? extends Either<E, A>>> callback) PureIO.runAsync(R env, Kind<PureIO<R, E, ?>, A> current, PureIOConnection connection, CallStack<R, E, A> stack, Promise<Either<E, A>> promise) voidprivate static <R,E, A> void PureIO.setCancelToken(R env, PureIO.Async<R, E, A> current, PureIOConnection connection, Promise<Either<E, A>> promise) Constructor parameters in com.github.tonivade.purefun.effect with type arguments of type Either -
Uses of Either in com.github.tonivade.purefun.free
Fields in com.github.tonivade.purefun.free declared as EitherMethods in com.github.tonivade.purefun.free that return types with arguments of type EitherModifier and TypeMethodDescriptionConstructors in com.github.tonivade.purefun.free with parameters of type Either -
Uses of Either in com.github.tonivade.purefun.instances
Methods in com.github.tonivade.purefun.instances with type parameters of type EitherModifier and TypeMethodDescriptionMethods in com.github.tonivade.purefun.instances that return EitherModifier and TypeMethodDescriptionEitherApplicative.ap(Kind<Either<L, ?>, ? extends T> value, Kind<Either<L, ?>, ? extends Function1<? super T, ? extends R>> apply) EitherMonad.flatMap(Kind<Either<L, ?>, ? extends T> value, Function1<? super T, ? extends Kind<Either<L, ?>, ? extends R>> map) EitherMonadError.handleErrorWith(Kind<Either<L, ?>, A> value, Function1<? super L, ? extends Kind<Either<L, ?>, ? extends A>> handler) EitherPure.pure(T value) EitherMonadError.raiseError(L error) Methods in com.github.tonivade.purefun.instances that return types with arguments of type EitherModifier and TypeMethodDescriptionEitherTBracket.acquireRecover(E error) EitherTMonadDefer.acquireRecover(Throwable error) static <L> Applicative<Either<L, ?>> EitherInstances.applicative()EitherInstances.foldable()EitherInstances.functor()private <T,R> Trampoline <Kind<Either<L, ?>, R>> EitherInstances.monad()static <L> MonadError<Either<L, ?>, L> EitherInstances.monadError()static MonadThrow<Either<Throwable, ?>> EitherInstances.monadThrow()default <A,B> EIO <Throwable, Either<Tuple2<A, Fiber<EIO<Throwable, ?>, B>>, Tuple2<Fiber<EIO<Throwable, ?>, A>, B>>> EIOConcurrent.racePair(Kind<EIO<Throwable, ?>, ? extends A> fa, Kind<EIO<Throwable, ?>, ? extends B> fb) default <A,B> PureIO <R, Throwable, Either<Tuple2<A, Fiber<PureIO<R, Throwable, ?>, B>>, Tuple2<Fiber<PureIO<R, Throwable, ?>, A>, B>>> PureIOConcurrent.racePair(Kind<PureIO<R, Throwable, ?>, ? extends A> fa, Kind<PureIO<R, Throwable, ?>, ? extends B> fb) MonadMTL.EffectE.run()EitherInstances.traverse()EitherTraverse.traverse(Applicative<G> applicative, Kind<Either<L, ?>, T> value, Function1<? super T, ? extends Kind<G, ? extends R>> mapper) Method parameters in com.github.tonivade.purefun.instances with type arguments of type EitherModifier and TypeMethodDescriptionEitherApplicative.ap(Kind<Either<L, ?>, ? extends T> value, Kind<Either<L, ?>, ? extends Function1<? super T, ? extends R>> apply) <A> MonadMTL.EffectS<F, S, R, E, A> <A> MonadMTL.EffectE<F, E, A> EitherMonad.flatMap(Kind<Either<L, ?>, ? extends T> value, Function1<? super T, ? extends Kind<Either<L, ?>, ? extends R>> map) EitherMonad.flatMap(Kind<Either<L, ?>, ? extends T> value, Function1<? super T, ? extends Kind<Either<L, ?>, ? extends R>> map) default <A,B> B EitherFoldable.foldLeft(Kind<Either<L, ?>, ? extends A> value, B initial, Function2<? super B, ? super A, ? extends B> mapper) default <A,B> Eval <B> EitherFoldable.foldRight(Kind<Either<L, ?>, ? extends A> value, Eval<? extends B> initial, Function2<? super A, ? super Eval<? extends B>, ? extends Eval<? extends B>> mapper) EitherMonadError.handleErrorWith(Kind<Either<L, ?>, A> value, Function1<? super L, ? extends Kind<Either<L, ?>, ? extends A>> handler) EitherMonadError.handleErrorWith(Kind<Either<L, ?>, A> value, Function1<? super L, ? extends Kind<Either<L, ?>, ? extends A>> handler) private <T,R> Trampoline <Kind<Either<L, ?>, R>> private <T,R> Trampoline <Kind<Either<L, ?>, R>> private <T,R> Trampoline <Kind<Option<?>, R>> private <T,R> Trampoline <Kind<Try<?>, R>> private <T,R> Trampoline <Kind<Validation<E, ?>, R>> default <A,B> Validation <E, B> ValidationSelective.select(Kind<Validation<E, ?>, Either<A, B>> value, Kind<Validation<E, ?>, Function1<? super A, ? extends B>> apply) default <T,R> Kind <Validation<E, ?>, R> EitherTraverse.traverse(Applicative<G> applicative, Kind<Either<L, ?>, T> value, Function1<? super T, ? extends Kind<G, ? extends R>> mapper) -
Uses of Either in com.github.tonivade.purefun.monad
Methods in com.github.tonivade.purefun.monad that return types with arguments of type EitherModifier and TypeMethodDescriptionIO.either()IO.either(Function1<? super Throwable, ? extends L> mapError, Function1<? super T, ? extends R> mapper) Methods in com.github.tonivade.purefun.monad with parameters of type EitherModifier and TypeMethodDescriptionstatic <T> IO<T> IO.fromEither(Either<Throwable, ? extends T> task) Method parameters in com.github.tonivade.purefun.monad with type arguments of type Either -
Uses of Either in com.github.tonivade.purefun.optics
Fields in com.github.tonivade.purefun.optics with type parameters of type EitherMethods in com.github.tonivade.purefun.optics that return EitherModifier and TypeMethodDescriptionOptional.getOrModify(S target) POptional.getOrModify(S target) PPrism.getOrModify(S target) Prism.getOrModify(S target) Method parameters in com.github.tonivade.purefun.optics with type arguments of type EitherModifier and TypeMethodDescriptionstatic <S,T, A, B>
POptional<S, T, A, B> static <S,T, A, B>
PPrism<S, T, A, B> Constructor parameters in com.github.tonivade.purefun.optics with type arguments of type Either -
Uses of Either in com.github.tonivade.purefun.runtimes
Methods in com.github.tonivade.purefun.runtimes that return types with arguments of type Either -
Uses of Either in com.github.tonivade.purefun.transformer
Methods in com.github.tonivade.purefun.transformer that return types with arguments of type EitherMethods in com.github.tonivade.purefun.transformer with parameters of type EitherModifier and TypeMethodDescriptionMethod parameters in com.github.tonivade.purefun.transformer with type arguments of type EitherModifier and TypeMethodDescription -
Uses of Either in com.github.tonivade.purefun.type
Classes in com.github.tonivade.purefun.type that implement EitherModifier and TypeClassDescriptionstatic final recordEither.Left<L,R> static final recordEither.Right<L,R> Methods in com.github.tonivade.purefun.type that return EitherModifier and TypeMethodDescriptiondefault <T,U> Either <T, U> Either.bimap(Function1<? super L, ? extends T> leftMapper, Function1<? super R, ? extends U> rightMapper) Either.flatMapLeft(Function1<? super L, ? extends Either<? extends T, R>> map) static <L,R> Either <L, R> Either.left(L value) static <L,A, B, Z>
Either<L, Z> Either.map2(Either<L, ? extends A> eitherA, Either<L, ? extends B> eitherB, Function2<? super A, ? super B, ? extends Z> mapper) static <L,R> Either <L, R> Either.right(R value) Either.swap()static <L,R> Either <L, R> Option.toEither()Try.toEither()Validation.toEither()Methods in com.github.tonivade.purefun.type that return types with arguments of type EitherModifier and TypeMethodDescriptionMethods in com.github.tonivade.purefun.type with parameters of type EitherModifier and TypeMethodDescriptionstatic <R> Try<R> Try.fromEither(Either<? extends Throwable, ? extends R> value) static <L,A, B, Z>
Either<L, Z> Either.map2(Either<L, ? extends A> eitherA, Either<L, ? extends B> eitherB, Function2<? super A, ? super B, ? extends Z> mapper) static <A> AMethod parameters in com.github.tonivade.purefun.type with type arguments of type EitherModifier and TypeMethodDescriptionEither.flatMapLeft(Function1<? super L, ? extends Either<? extends T, R>> map) static <E,T, R> Validation <E, R> Validation.select(Validation<E, Either<T, R>> validation, Validation<E, Function1<? super T, ? extends R>> apply) static <L,R> Either <L, R> -
Uses of Either in com.github.tonivade.purefun.typeclasses
Methods in com.github.tonivade.purefun.typeclasses that return types with arguments of type EitherModifier and TypeMethodDescriptionSchedule.andThenEither(Schedule<F, A, C> next) ScheduleImpl.andThenEither(Schedule<F, A, C> next) ScheduleImpl.doAndThenEither(ScheduleImpl<F, T, A, C> other) ScheduleImpl.doAndThenEither(ScheduleImpl<F, T, A, C> other) MonadError.repeat(Kind<F, A> value, ScheduleImpl<F, S, A, B> schedule, Function2<E, Option<B>, Kind<F, C>> orElse) MonadError.repeatOrElseEither(Kind<F, A> value, Schedule<F, A, B> schedule, Function2<E, Option<B>, Kind<F, C>> orElse) MonadError.retryOrElseEither(Kind<F, A> value, Schedule<F, E, C> schedule, Function2<E, C, Kind<F, B>> orElse) Methods in com.github.tonivade.purefun.typeclasses with parameters of type EitherMethod parameters in com.github.tonivade.purefun.typeclasses with type arguments of type EitherModifier and TypeMethodDescriptionSelective.branch(Kind<F, Either<A, B>> value, Kind<F, Function1<? super A, ? extends C>> applyA, Kind<F, Function1<? super B, ? extends C>> applyB) Schedule.foldM(Z zero, Function2<? super Z, ? super B, ? extends Kind<F, Either<Unit, ? extends Z>>> next) ScheduleImpl.foldM(Z zero, Function2<? super Z, ? super B, ? extends Kind<F, Either<Unit, ? extends Z>>> next)