Uses of Interface
com.github.tonivade.purefun.type.Option
Packages that use Option
Package
Description
-
Uses of Option in com.github.tonivade.purefun.concurrent
Methods in com.github.tonivade.purefun.concurrent that return Option -
Uses of Option in com.github.tonivade.purefun.core
Methods in com.github.tonivade.purefun.core that return types with arguments of type OptionModifier and TypeMethodDescriptionPartialFunction1.lift()PartialFunction2.lift()PartialFunction3.lift()Function1.liftOption()Function2.liftOption()Producer.liftOption() -
Uses of Option in com.github.tonivade.purefun.data
Methods in com.github.tonivade.purefun.data that return OptionModifier and TypeMethodDescriptionImmutableTreeMap.ceilingEntry(K key) ImmutableTreeMap.PImmutableTreeMap.ceilingEntry(K key) ImmutableTreeMap.ceilingKey(K key) ImmutableTreeMap.floorEntry(K key) ImmutableTreeMap.PImmutableTreeMap.floorEntry(K key) ImmutableList.head()ImmutableList.PImmutableList.head()ImmutableTree.head()ImmutableTree.PImmutableTree.head()NonEmptyList.head()ImmutableTreeMap.headEntry()ImmutableTreeMap.PImmutableTreeMap.headEntry()ImmutableTreeMap.headKey()ImmutableTreeMap.higherEntry(K key) ImmutableTreeMap.PImmutableTreeMap.higherEntry(K key) ImmutableTreeMap.lowerEntry(K key) ImmutableTreeMap.PImmutableTreeMap.lowerEntry(K key) ImmutableTree.PImmutableTree.tail()ImmutableTree.tail()ImmutableTreeMap.PImmutableTreeMap.tailEntry()ImmutableTreeMap.tailEntry()ImmutableTreeMap.tailKey() -
Uses of Option in com.github.tonivade.purefun.effect
Methods in com.github.tonivade.purefun.effect that return OptionModifier and TypeMethodDescriptionMethods in com.github.tonivade.purefun.effect with parameters of type OptionModifier and TypeMethodDescriptionEIO.fromOption(Option<? extends A> task) PureIO.fromOption(Option<? extends A> task) static <R,A> RIO <R, A> RIO.fromOption(Option<? extends A> task) static <A> Task<A> Task.fromOption(Option<? extends A> task) static <T> UIO<T> UIO.fromOption(Option<? extends T> task) static <R,T> URIO <R, T> URIO.fromOption(Option<? extends T> task) Method parameters in com.github.tonivade.purefun.effect with type arguments of type OptionModifier and TypeMethodDescriptionEIO.fromOption(Producer<Option<? extends A>> task) PureIO.fromOption(Producer<Option<? extends A>> task) static <R,A> RIO <R, A> RIO.fromOption(Producer<Option<? extends A>> task) static <A> Task<A> Task.fromOption(Producer<Option<? extends A>> task) EIO.liftOption(Function1<? super A, ? extends Option<? extends B>> function) PureIO.liftOption(Function1<? super A, ? extends Option<? extends B>> function) RIO.liftOption(Function1<? super A, ? extends Option<? extends B>> function) Task.liftOption(Function1<? super A, ? extends Option<? extends B>> function) UIO.liftOption(Function1<? super A, ? extends Option<? extends B>> function) URIO.liftOption(Function1<? super A, ? extends Option<? extends B>> function) -
Uses of Option in com.github.tonivade.purefun.instances
Methods in com.github.tonivade.purefun.instances that return types with arguments of type OptionModifier and TypeMethodDescriptionstatic Alternative<Option<?>> OptionInstances.alternative()OptionApplicative.ap(Kind<Option<?>, ? extends T> value, Kind<Option<?>, ? extends Function1<? super T, ? extends R>> apply) static Applicative<Option<?>> OptionInstances.applicative()OptionMonad.flatMap(Kind<Option<?>, ? extends T> value, Function1<? super T, ? extends Kind<Option<?>, ? extends R>> map) OptionInstances.foldable()OptionInstances.functor()OptionMonadError.handleErrorWith(Kind<Option<?>, A> value, Function1<? super Unit, ? extends Kind<Option<?>, ? extends A>> handler) private <T,R> Trampoline <Kind<Option<?>, R>> OptionInstances.monad()static MonadError<Option<?>, Unit> OptionInstances.monadError()OptionPure.pure(T value) OptionMonadError.raiseError(Unit error) static Semigroupal<Option<?>> OptionInstances.semigroupal()OptionInstances.traverse()OptionTraverse.traverse(Applicative<G> applicative, Kind<Option<?>, T> value, Function1<? super T, ? extends Kind<G, ? extends R>> mapper) OptionMonoidK.zero()Method parameters in com.github.tonivade.purefun.instances with type arguments of type OptionModifier and TypeMethodDescriptionOptionApplicative.ap(Kind<Option<?>, ? extends T> value, Kind<Option<?>, ? extends Function1<? super T, ? extends R>> apply) OptionMonad.flatMap(Kind<Option<?>, ? extends T> value, Function1<? super T, ? extends Kind<Option<?>, ? extends R>> map) OptionMonad.flatMap(Kind<Option<?>, ? extends T> value, Function1<? super T, ? extends Kind<Option<?>, ? extends R>> map) default <A,B> B OptionFoldable.foldLeft(Kind<Option<?>, ? extends A> value, B initial, Function2<? super B, ? super A, ? extends B> mapper) default <A,B> Eval <B> OptionFoldable.foldRight(Kind<Option<?>, ? extends A> value, Eval<? extends B> initial, Function2<? super A, ? super Eval<? extends B>, ? extends Eval<? extends B>> mapper) OptionMonadError.handleErrorWith(Kind<Option<?>, A> value, Function1<? super Unit, ? extends Kind<Option<?>, ? extends A>> handler) OptionMonadError.handleErrorWith(Kind<Option<?>, A> value, Function1<? super Unit, ? extends Kind<Option<?>, ? extends A>> handler) private <T,R> Trampoline <Kind<Option<?>, R>> OptionTraverse.traverse(Applicative<G> applicative, Kind<Option<?>, T> value, Function1<? super T, ? extends Kind<G, ? extends R>> mapper) -
Uses of Option in com.github.tonivade.purefun.monad
Methods in com.github.tonivade.purefun.monad that return OptionModifier and TypeMethodDescriptionMethods in com.github.tonivade.purefun.monad with parameters of type OptionMethod parameters in com.github.tonivade.purefun.monad with type arguments of type OptionModifier and TypeMethodDescriptionIO.liftOption(Function1<? super A, ? extends Option<? extends B>> function) -
Uses of Option in com.github.tonivade.purefun.optics
Methods in com.github.tonivade.purefun.optics that return OptionModifier and TypeMethodDescriptionOptional.modifyOption(S target, Operator1<A> mapper) POptional.modifyOption(S target, Function1<A, B> mapper) Methods in com.github.tonivade.purefun.optics that return types with arguments of type OptionModifier and TypeMethodDescriptionPPrism.modifyOption(Function1<A, B> mapper) Prism.modifyOption(Operator1<A> mapper) Method parameters in com.github.tonivade.purefun.optics with type arguments of type Option -
Uses of Option in com.github.tonivade.purefun.stream
Methods in com.github.tonivade.purefun.stream that return types with arguments of type OptionModifier and TypeMethodDescriptionCons.headOption()Nil.headOption()PureStream.headOption()Suspend.headOption()Cons.split()Nil.split()PureStream.split()Suspend.split()Method parameters in com.github.tonivade.purefun.stream with type arguments of type OptionModifier and TypeMethodDescriptionprivate <T,S> PureStream <F, T> PureStream.Of.doUnfold(S seed, Function1<? super S, Option<Tuple2<? extends T, ? extends S>>> function) default <T,S> PureStream <F, T> static <F extends Kind<F,?>, T, S>
PureStream<F, T> PureStream.unfold(S seed, Function1<? super S, Option<Tuple2<? extends T, ? extends S>>> function, F... reified) -
Uses of Option in com.github.tonivade.purefun.transformer
Methods in com.github.tonivade.purefun.transformer that return types with arguments of type OptionMethods in com.github.tonivade.purefun.transformer with parameters of type OptionMethod parameters in com.github.tonivade.purefun.transformer with type arguments of type Option -
Uses of Option in com.github.tonivade.purefun.type
Classes in com.github.tonivade.purefun.type that implement OptionModifier and TypeClassDescriptionstatic final classOption.None<T>static final recordOption.Some<T>Methods in com.github.tonivade.purefun.type that return OptionModifier and TypeMethodDescriptiondefault <R> Option<R> default Option<Validation<E, T>> default Option<Validation<E, T>> default <R> Option<R> static <T> Option<T> Try.Failure.getMessage()Either.left()default <R> Option<R> static <A,B, Z> Option <Z> Option.map2(Option<A> optionA, Option<B> optionB, Function2<? super A, ? super B, ? extends Z> mapper) static <T> Option<T> Option.none()static <T> Option<T> static <T> Option<T> Option.of(T value) Either.right()static <T> Option<T> Option.some(T value) Either.toOption()static <T> Option<T> Try.toOption()Methods in com.github.tonivade.purefun.type with parameters of type OptionModifier and TypeMethodDescriptionstatic <A,B, Z> Option <Z> Option.map2(Option<A> optionA, Option<B> optionB, Function2<? super A, ? super B, ? extends Z> mapper) Method parameters in com.github.tonivade.purefun.type with type arguments of type Option -
Uses of Option in com.github.tonivade.purefun.typeclasses
Methods in com.github.tonivade.purefun.typeclasses that return OptionMethod parameters in com.github.tonivade.purefun.typeclasses with type arguments of type OptionModifier and TypeMethodDescriptionMonadError.repeat(Kind<F, A> value, ScheduleImpl<F, S, A, B> schedule, Function2<E, Option<B>, Kind<F, C>> orElse) MonadError.repeatOrElse(Kind<F, A> value, Schedule<F, A, B> schedule, Function2<E, Option<B>, Kind<F, B>> orElse) MonadError.repeatOrElseEither(Kind<F, A> value, Schedule<F, A, B> schedule, Function2<E, Option<B>, Kind<F, C>> orElse)