Uses of Class
io.atlassian.fugue.Option
-
-
Uses of Option in io.atlassian.fugue
Subclasses of Option in io.atlassian.fugue Modifier and Type Class Description (package private) static classOption.NoneOne of the big two actual implementation classes.(package private) static classOption.Some<A>One of the big two actual implementation classes.Fields in io.atlassian.fugue declared as Option Modifier and Type Field Description private static Option<java.lang.Object>Option.None. NONEFields in io.atlassian.fugue with type parameters of type Option Modifier and Type Field Description private java.util.function.Function<? super A,? extends Option<? extends B>>Functions.PartialComposer. abprivate java.util.function.Function<? super B,? extends Option<? extends C>>Functions.PartialComposer. bcprivate java.util.function.Function<? super B,Option<Pair<A,B>>>Iterables.UnfoldingIterable. fprivate java.util.function.Function<? super B,Option<Pair<A,B>>>Iterables.UnfoldingIterable.Iter. fprivate java.lang.Iterable<java.util.function.Function<? super A,? extends Option<? extends B>>>Functions.Matcher. fsprivate java.util.function.Function<? super A,Option<B>>Iterables.CollectingIterable. partialMethods in io.atlassian.fugue that return Option Modifier and Type Method Description static <A,B>
Option<B>Options. ap(Option<A> oa, Option<java.util.function.Function<A,B>> of)Applies an option of A to an option of a function with input type A and result type B and return an option of B.Option<B>Functions.InstanceOf. apply(A a)Option<B>Functions.Matcher. apply(A a)Option<B>Functions.Partial. apply(A a)Option<C>Functions.PartialComposer. apply(A a)Option<Either<L,R>>Either. filter(java.util.function.Predicate<? super R> p)ReturnsNoneif this is a left or if the given predicatepdoes not hold for the contained value, otherwise, returns a right inSome.<X> Option<Either<L,X>>Either.LeftProjection. filter(java.util.function.Predicate<? super L> f)ReturnsNoneif this projection has no value or if the given predicatepdoes not hold for the value, otherwise, returns a left inSome.<X> Option<Either<X,R>>Either.RightProjection. filter(java.util.function.Predicate<? super R> f)ReturnsNoneif this projection has no value or if the given predicatepdoes not hold for the value, otherwise, returns a right inSome.Option<A>Option. filter(java.util.function.Predicate<? super A> p)Returns thisOptionif it is nonempty and applying the predicate to this option's value returns true.Option<A>Option. filterNot(java.util.function.Predicate<? super A> p)Returns thisOptionif it is nonempty and applying the predicate to this option's value returns false.static <A> Option<A>Options. find(java.lang.Iterable<Option<A>> options)Find the first option thatisDefined, or if there aren't any, then none.static <T> Option<T>Iterables. findFirst(java.lang.Iterable<? extends T> elements, java.util.function.Predicate<? super T> p)Finds the first item that matches the predicate.static <A> Option<A>Iterables. first(java.lang.Iterable<A> as)Ifasis empty, returnsnone().<B> Option<B>Option. flatMap(java.util.function.Function<? super A,? extends Option<? extends B>> f)Applyfto the value if defined.static <A> Option<A>Option. fromOptional(java.util.Optional<A> optional)Factory method forOptioninstances fromOptionalinstances.<B> Option<B>Option. map(java.util.function.Function<? super A,? extends B> f)Applyfto the value if defined.static <A> Option<A>Option. none()Factory method for None instances.static <A> Option<A>Option. none(java.lang.Class<A> type)Factory method for None instances where the type token is handy.static <A> Option<A>Option. option(A a)Factory method forOptioninstances.Option<A>Option. orElse(Option<? extends A> orElse)If this is a some, return the same some.Option<A>Option. orElse(java.util.function.Supplier<? extends Option<? extends A>> orElse)If this is a some, return the same some.static <A> Option<A>Option. some(A value)Factory method for Some instances.Option<A>Either.AbstractProjection. toOption()Option<? super A>Either.Projection. toOption()Returns this projection's value inSomeif it exists, otherwiseNone.Option<R>Either. toOption()Convert this Either to an Option.Option<A>Try.Delayed. toOption()Option<A>Try.Failure. toOption()Option<A>Try.Success. toOption()abstract Option<A>Try. toOption()Convert this Try to an Option.static <AA,A extends AA>
Option<AA>Options. upcast(Option<A> o)Upcasts anoptionof type A to an option of its super type AA.Methods in io.atlassian.fugue that return types with arguments of type Option Modifier and Type Method Description static <A,B,C>
java.util.function.Function<A,Option<C>>Functions. composeOption(java.util.function.Function<? super B,? extends Option<? extends C>> bc, java.util.function.Function<? super A,? extends Option<? extends B>> ab)Compose two PartialFunctions into one.static <A> java.util.function.Predicate<Option<A>>Option. defined()Predicate for filtering defined options only.static <A> java.lang.Iterable<Option<A>>Options. filterNone(java.lang.Iterable<Option<A>> options)Filter out undefined options.static <A> java.util.function.Function<java.lang.Iterable<A>,Option<A>>Iterables. findFirst(java.util.function.Predicate<? super A> predicate)Partial application of the predicate argument toIterables.findFirst(Iterable, Predicate)returning a function that takes anIterableas its argumentstatic <A> Monoid<Option<A>>Monoids. firstOption()A monoid for options (that take the first available value).static <A> java.util.stream.Collector<Option<A>,?,java.util.List<A>>FugueCollectors. flatten()Collect the values wrapped within the option.static <A,B,C>
java.util.stream.Collector<Option<A>,?,C>FugueCollectors. flatten(java.util.stream.Collector<A,B,C> aCollector)Collect the values wrapped within the option.static <A,B>
java.util.function.Function<A,Option<B>>Functions. forMap(java.util.Map<A,B> map)Create a function that performs a map lookup returning None for null If you do not need a nondefaulted return result using a method reference is preferred map::getstatic <A,B>
java.util.function.Function<A,Option<B>>Functions. isInstanceOf(java.lang.Class<B> cls)Partial Function that does a type check and matches if the value is of the right type.static <A> Monoid<Option<A>>Monoids. lastOption()A monoid for options that take the last available value.static <L,R>
java.util.function.Function<Either<L,R>,Option<L>>Eithers. leftMapper()A function that maps an either to an option of its left type.static <A,B>
java.util.function.Function<java.util.function.Function<A,B>,java.util.function.Function<Option<A>,Option<B>>>Options. lift()Returns a function that will lift a function that takes an A and returns a B into a function that takes an option of A and returns an option of B.static <A,B>
java.util.function.Function<java.util.function.Function<A,B>,java.util.function.Function<Option<A>,Option<B>>>Options. lift()Returns a function that will lift a function that takes an A and returns a B into a function that takes an option of A and returns an option of B.static <A,B>
java.util.function.Function<Option<A>,Option<B>>Options. lift(java.util.function.Function<A,B> f)Lifts a function that takes an A and returns a B into a function that takes an option of A and returns an option of B.static <A,B>
java.util.function.Function<Option<A>,Option<B>>Options. lift(java.util.function.Function<A,B> f)Lifts a function that takes an A and returns a B into a function that takes an option of A and returns an option of B.static <A> java.util.function.Predicate<Option<A>>Options. lift(java.util.function.Predicate<? super A> pred)Lifts a predicate that takes an A into a predicate that takes an option of A.static <A,B,C>
java.util.function.Function<java.util.function.BiFunction<A,B,C>,java.util.function.BiFunction<Option<A>,Option<B>,Option<C>>>Options. lift2()Returns a function that will lift a function that takes an A and a B and returns a C into a function that takes an option of A and an option of B and returns an option of C.static <A,B,C>
java.util.function.Function<java.util.function.BiFunction<A,B,C>,java.util.function.BiFunction<Option<A>,Option<B>,Option<C>>>Options. lift2()Returns a function that will lift a function that takes an A and a B and returns a C into a function that takes an option of A and an option of B and returns an option of C.static <A,B,C>
java.util.function.Function<java.util.function.BiFunction<A,B,C>,java.util.function.BiFunction<Option<A>,Option<B>,Option<C>>>Options. lift2()Returns a function that will lift a function that takes an A and a B and returns a C into a function that takes an option of A and an option of B and returns an option of C.static <A,B,C>
java.util.function.BiFunction<Option<A>,Option<B>,Option<C>>Options. lift2(java.util.function.BiFunction<A,B,C> f2)Lifts a function that takes an A and a B and returns a C into a function that takes an option of A and an option of B and returns an option of C.static <A,B,C>
java.util.function.BiFunction<Option<A>,Option<B>,Option<C>>Options. lift2(java.util.function.BiFunction<A,B,C> f2)Lifts a function that takes an A and a B and returns a C into a function that takes an option of A and an option of B and returns an option of C.static <A,B,C>
java.util.function.BiFunction<Option<A>,Option<B>,Option<C>>Options. lift2(java.util.function.BiFunction<A,B,C> f2)Lifts a function that takes an A and a B and returns a C into a function that takes an option of A and an option of B and returns an option of C.static <A,B>
java.util.function.Function<A,Option<B>>Functions. mapNullToOption(java.util.function.Function<? super A,? extends B> f)Maps a function that returns nulls into a Partial function that returns an Option of the result.static <A,B>
java.util.function.Function<A,Option<B>>Functions. matches(java.util.function.Function<? super A,? extends Option<? extends B>> f1, java.util.function.Function<? super A,? extends Option<? extends B>> f2)Creates a stack of matcher functions and returns the first result that matches.static <A,B>
java.util.function.Function<A,Option<B>>Functions. matches(java.util.function.Function<? super A,? extends Option<? extends B>> f1, java.util.function.Function<? super A,? extends Option<? extends B>> f2, java.util.function.Function<? super A,? extends Option<? extends B>> f3)Creates a stack of matcher functions and returns the first result that matches.static <A,B>
java.util.function.Function<A,Option<B>>Functions. matches(java.util.function.Function<? super A,? extends Option<? extends B>> f1, java.util.function.Function<? super A,? extends Option<? extends B>> f2, java.util.function.Function<? super A,? extends Option<? extends B>> f3, java.util.function.Function<? super A,? extends Option<? extends B>> f4)Creates a stack of matcher functions and returns the first result that matches.static <A,B>
java.util.function.Function<A,Option<B>>Functions. matches(java.util.function.Function<? super A,? extends Option<? extends B>> f1, java.util.function.Function<? super A,? extends Option<? extends B>> f2, java.util.function.Function<? super A,? extends Option<? extends B>> f3, java.util.function.Function<? super A,? extends Option<? extends B>> f4, java.util.function.Function<? super A,? extends Option<? extends B>> f5, java.util.function.Function<? super A,? extends Option<? extends B>>... fs)Creates a stack of matcher functions and returns the first result that matches.static <A> java.util.function.Supplier<Option<A>>Option. noneSupplier()Supplies None as required.static <A,B>
java.util.function.Function<A,Option<B>>Options. nullSafe(java.util.function.Function<A,B> nullProducing)Turn a null producing function into one that returns an option instead.static <A> java.util.function.Function<A,Option<A>>Functions. nullToOption()Function that turns null inputs into a none, and not-null inputs into some.static <A> Monoid<Option<A>>Monoids. option(Semigroup<A> semigroup)A monoid for options that combine inner value with a semigroup.static <A,B>
java.util.function.Function<A,Option<B>>Functions. partial(java.util.function.Predicate<? super A> p, java.util.function.Function<? super A,? extends B> f)Create a PartialFunction from aPredicateand aFunction.static <L,R>
java.util.function.Function<Either<L,R>,Option<R>>Eithers. rightMapper()A function that maps an either to an option of its right type.static <A> java.util.function.Function<A,Option<A>>Options. toOption()Function for wrapping values in a Some or None.Methods in io.atlassian.fugue with parameters of type Option Modifier and Type Method Description static <A,B>
Option<B>Options. ap(Option<A> oa, Option<java.util.function.Function<A,B>> of)Applies an option of A to an option of a function with input type A and result type B and return an option of B.static <A> java.util.function.Supplier<A>Suppliers. fromOption(Option<A> option)Turns an Option into a supplier, but throws an exception if undefined.Option<A>Option. orElse(Option<? extends A> orElse)If this is a some, return the same some.static <AA,A extends AA>
Option<AA>Options. upcast(Option<A> o)Upcasts anoptionof type A to an option of its super type AA.Method parameters in io.atlassian.fugue with type arguments of type Option Modifier and Type Method Description static <A,B>
java.lang.Iterable<B>Iterables. collect(java.lang.Iterable<? extends A> from, java.util.function.Function<? super A,Option<B>> partial)Filters and maps (aka transforms) the unfiltered iterable.static <A,B,C>
java.util.function.Function<A,Option<C>>Functions. composeOption(java.util.function.Function<? super B,? extends Option<? extends C>> bc, java.util.function.Function<? super A,? extends Option<? extends B>> ab)Compose two PartialFunctions into one.static <A> java.lang.Iterable<Option<A>>Options. filterNone(java.lang.Iterable<Option<A>> options)Filter out undefined options.static <A> Option<A>Options. find(java.lang.Iterable<Option<A>> options)Find the first option thatisDefined, or if there aren't any, then none.<B> Option<B>Option. flatMap(java.util.function.Function<? super A,? extends Option<? extends B>> f)Applyfto the value if defined.static <A> java.lang.Iterable<A>Options. flatten(java.lang.Iterable<Option<A>> options)Flattens anIterableofoptionsinto an iterable of the things, filtering out any nones.static <A,B>
java.util.function.Function<A,Option<B>>Functions. matches(java.util.function.Function<? super A,? extends Option<? extends B>> f1, java.util.function.Function<? super A,? extends Option<? extends B>> f2)Creates a stack of matcher functions and returns the first result that matches.static <A,B>
java.util.function.Function<A,Option<B>>Functions. matches(java.util.function.Function<? super A,? extends Option<? extends B>> f1, java.util.function.Function<? super A,? extends Option<? extends B>> f2, java.util.function.Function<? super A,? extends Option<? extends B>> f3)Creates a stack of matcher functions and returns the first result that matches.static <A,B>
java.util.function.Function<A,Option<B>>Functions. matches(java.util.function.Function<? super A,? extends Option<? extends B>> f1, java.util.function.Function<? super A,? extends Option<? extends B>> f2, java.util.function.Function<? super A,? extends Option<? extends B>> f3, java.util.function.Function<? super A,? extends Option<? extends B>> f4)Creates a stack of matcher functions and returns the first result that matches.static <A,B>
java.util.function.Function<A,Option<B>>Functions. matches(java.util.function.Function<? super A,? extends Option<? extends B>> f1, java.util.function.Function<? super A,? extends Option<? extends B>> f2, java.util.function.Function<? super A,? extends Option<? extends B>> f3, java.util.function.Function<? super A,? extends Option<? extends B>> f4, java.util.function.Function<? super A,? extends Option<? extends B>> f5, java.util.function.Function<? super A,? extends Option<? extends B>>... fs)Creates a stack of matcher functions and returns the first result that matches.Option<A>Option. orElse(java.util.function.Supplier<? extends Option<? extends A>> orElse)If this is a some, return the same some.static <A,B>
java.lang.Iterable<A>Iterables. unfold(java.util.function.Function<? super B,Option<Pair<A,B>>> f, B seed)Builds an Iterable from a seed value untilfreturnsnone().Constructor parameters in io.atlassian.fugue with type arguments of type Option Constructor Description CollectingIterable(java.lang.Iterable<? extends A> delegate, java.util.function.Function<? super A,Option<B>> partial)Iter(java.util.function.Function<? super B,Option<Pair<A,B>>> f, B seed)Matcher(java.lang.Iterable<java.util.function.Function<? super A,? extends Option<? extends B>>> fs)PartialComposer(java.util.function.Function<? super A,? extends Option<? extends B>> ab, java.util.function.Function<? super B,? extends Option<? extends C>> bc)UnfoldingIterable(java.util.function.Function<? super B,Option<Pair<A,B>>> f, B seed) -
Uses of Option in io.atlassian.fugue.extensions.step
Fields in io.atlassian.fugue.extensions.step declared as Option Modifier and Type Field Description private Option<A>OptionStep1. option1private Option<A>OptionStep2. option1private Option<A>OptionStep3. option1private Option<A>OptionStep4. option1private Option<A>OptionStep5. option1private Option<A>OptionStep6. option1private Option<B>OptionStep2. option2private Option<B>OptionStep3. option2private Option<B>OptionStep4. option2private Option<B>OptionStep5. option2private Option<B>OptionStep6. option2private Option<C>OptionStep3. option3private Option<C>OptionStep4. option3private Option<C>OptionStep5. option3private Option<C>OptionStep6. option3private Option<D>OptionStep4. option4private Option<D>OptionStep5. option4private Option<D>OptionStep6. option4private Option<E>OptionStep5. option5private Option<E>OptionStep6. option5private Option<F>OptionStep6. option6Methods in io.atlassian.fugue.extensions.step that return Option Modifier and Type Method Description <Z> Option<Z>OptionStep1. yield(java.util.function.Function<? super A,Z> functor)Terminating step expression, that will provide the previous steps to this function and return the result as asome<Z> Option<Z>OptionStep2. yield(java.util.function.BiFunction<? super A,? super B,Z> functor)Terminating step expression, that will provide the previous steps to this function and return the result as asome<Z> Option<Z>OptionStep3. yield(Function3<? super A,? super B,? super C,Z> functor)Terminating step expression, that will provide the previous steps to this function and return the result as asome<Z> Option<Z>OptionStep4. yield(Function4<? super A,? super B,? super C,? super D,Z> functor)Terminating step expression, that will provide the previous steps to this function and return the result as asome<Z> Option<Z>OptionStep5. yield(Function5<? super A,? super B,? super C,? super D,? super E,Z> functor)Terminating step expression, that will provide the previous steps to this function and return the result as asome<Z> Option<Z>OptionStep6. yield(Function6<? super A,? super B,? super C,? super D,? super E,? super F,Z> functor)Terminating step expression, that will provide the previous steps to this function and return the result as asomeMethods in io.atlassian.fugue.extensions.step with parameters of type Option Modifier and Type Method Description static <A> OptionStep1<A>Steps. begin(Option<A> option)Begin a new Steps expresison, using theOptiontype.Method parameters in io.atlassian.fugue.extensions.step with type arguments of type Option Modifier and Type Method Description <B> OptionStep2<A,B>OptionStep1. then(java.util.function.Function<? super A,? extends Option<? extends B>> functor)Apply the provided function with the previous Step results.<B> OptionStep2<A,B>OptionStep1. then(java.util.function.Supplier<? extends Option<? extends B>> supplier)Apply the provided supplier with the previous Step results.<C> OptionStep3<A,B,C>OptionStep2. then(java.util.function.BiFunction<? super A,? super B,? extends Option<? extends C>> functor)Apply the provided function with the previous Step results.<C> OptionStep3<A,B,C>OptionStep2. then(java.util.function.Supplier<? extends Option<? extends C>> supplier)Apply the provided supplier with the previous Step results.<D> OptionStep4<A,B,C,D>OptionStep3. then(Function3<? super A,? super B,? super C,? extends Option<? extends D>> functor)Apply the provided function with the previous Step results.<D> OptionStep4<A,B,C,D>OptionStep3. then(java.util.function.Supplier<? extends Option<? extends D>> supplier)Apply the provided supplier with the previous Step results.<E> OptionStep5<A,B,C,D,E>OptionStep4. then(Function4<? super A,? super B,? super C,? super D,? extends Option<? extends E>> functor)Apply the provided function with the previous Step results.<E> OptionStep5<A,B,C,D,E>OptionStep4. then(java.util.function.Supplier<? extends Option<? extends E>> supplier)Apply the provided supplier with the previous Step results.<F> OptionStep6<A,B,C,D,E,F>OptionStep5. then(Function5<? super A,? super B,? super C,? super D,? super E,? extends Option<? extends F>> functor)Apply the provided function with the previous Step results.<F> OptionStep6<A,B,C,D,E,F>OptionStep5. then(java.util.function.Supplier<? extends Option<? extends F>> supplier)Apply the provided supplier with the previous Step results.Constructors in io.atlassian.fugue.extensions.step with parameters of type Option Constructor Description OptionStep1(Option<A> option1)OptionStep2(Option<A> option1, Option<B> option2)OptionStep3(Option<A> option1, Option<B> option2, Option<C> option3)OptionStep4(Option<A> option1, Option<B> option2, Option<C> option3, Option<D> option4)OptionStep5(Option<A> option1, Option<B> option2, Option<C> option3, Option<D> option4, Option<E> option5)OptionStep6(Option<A> option1, Option<B> option2, Option<C> option3, Option<D> option4, Option<E> option5, Option<F> option6) -
Uses of Option in io.atlassian.fugue.extras
Method parameters in io.atlassian.fugue.extras with type arguments of type Option Modifier and Type Method Description static <K1,K2,V1,V2>
com.google.common.collect.ImmutableMap<K2,V2>ImmutableMaps. collect(java.util.Map<K1,V1> from, java.util.function.Function<? super K1,Option<K2>> keyPartial, java.util.function.Function<? super V1,Option<V2>> valuePartial)Filters and maps (aka transforms) the source map.static <K1,K2,V1,V2>
com.google.common.collect.ImmutableMap<K2,V2>ImmutableMaps. collect(java.util.Map<K1,V1> from, java.util.function.Function<java.util.Map.Entry<K1,V1>,Option<java.util.Map.Entry<K2,V2>>> partial)Filters and maps (aka transforms) the source map.static <K1,K2,V>
com.google.common.collect.ImmutableMap<K2,V>ImmutableMaps. collectByKey(java.util.Map<K1,V> from, java.util.function.Function<? super K1,Option<K2>> keyPartial)Filters and maps (aka transforms) the source map.static <K,V1,V2>
com.google.common.collect.ImmutableMap<K,V2>ImmutableMaps. collectByValue(java.util.Map<K,V1> from, java.util.function.Function<? super V1,Option<V2>> valuePartial)Filters and maps (aka transforms) the source map. -
Uses of Option in io.atlassian.fugue.hamcrest
Fields in io.atlassian.fugue.hamcrest with type parameters of type Option Modifier and Type Field Description private static org.hamcrest.Matcher<Option<?>>OptionMatchers.NoneMatcher. INSTANCEMethods in io.atlassian.fugue.hamcrest that return types with arguments of type Option Modifier and Type Method Description static <L> org.hamcrest.Matcher<Option<?>>OptionMatchers. isNone()static <T> org.hamcrest.Matcher<Option<T>>OptionMatchers. isSome(org.hamcrest.Matcher<? super T> subMatcher)Methods in io.atlassian.fugue.hamcrest with parameters of type Option Modifier and Type Method Description protected voidOptionMatchers.NoneMatcher. describeMismatchSafely(Option<?> actual, org.hamcrest.Description mismatchDescription)protected voidOptionMatchers.SomeMatcher. describeMismatchSafely(Option<T> actual, org.hamcrest.Description mismatchDescription)protected booleanOptionMatchers.NoneMatcher. matchesSafely(Option<?> actual)protected booleanOptionMatchers.SomeMatcher. matchesSafely(Option<T> actual) -
Uses of Option in io.atlassian.fugue.optic
Methods in io.atlassian.fugue.optic that return Option Modifier and Type Method Description Option<A>Optional. getOption(S s)abstract Option<A>POptional. getOption(S s)get the target of aPOptionalor nothing if there is no targetabstract Option<A>PPrism. getOption(S s)get the target of aPPrismor nothing if there is no targetOption<A>Prism. getOption(S s)Option<A>Fold. headOption(S s)get the first target of aFoldOption<A>PTraversal. headOption(S s)get the first target of aPTraversalMethods in io.atlassian.fugue.optic that return types with arguments of type Option Modifier and Type Method Description java.util.function.Function<S,Option<A>>Fold. find(java.util.function.Predicate<A> p)find the first target of aFoldmatching the predicatejava.util.function.Function<S,Option<A>>PTraversal. find(java.util.function.Predicate<A> p)find the first target of aPTraversalmatching the predicatejava.util.function.Function<S,Option<T>>POptional. modifyOption(java.util.function.Function<A,B> f)modify polymorphically the target of aPOptionalwith a function.java.util.function.Function<S,Option<T>>PPrism. modifyOption(java.util.function.Function<A,B> f)modify polymorphically the target of aPPrismwith a function.java.util.function.Function<S,Option<S>>Lens. modifyOptionF(java.util.function.Function<A,Option<A>> f)java.util.function.Function<S,Option<S>>Optional. modifyOptionF(java.util.function.Function<A,Option<A>> f)java.util.function.Function<S,Option<T>>PIso. modifyOptionF(java.util.function.Function<A,Option<B>> f)modify polymorphically the target of aPIsowith an Applicative functionabstract java.util.function.Function<S,Option<T>>PLens. modifyOptionF(java.util.function.Function<A,Option<B>> f)modify polymorphically the target of aPLenswith an Applicative functionabstract java.util.function.Function<S,Option<T>>POptional. modifyOptionF(java.util.function.Function<A,Option<B>> f)modify polymorphically the target of aPOptionalwith an Applicative functionjava.util.function.Function<S,Option<T>>PPrism. modifyOptionF(java.util.function.Function<A,Option<B>> f)modify polymorphically the target of aPPrismwith an Applicative functionabstract java.util.function.Function<S,Option<T>>PTraversal. modifyOptionF(java.util.function.Function<A,Option<B>> f)modify polymorphically the target of aPTraversalwith an Applicative functionjava.util.function.Function<S,Option<S>>Traversal. modifyOptionF(java.util.function.Function<A,Option<A>> f)java.util.function.Function<S,Option<T>>POptional. setOption(B b)set polymorphically the target of aPOptionalwith a value.java.util.function.Function<S,Option<T>>PPrism. setOption(B b)set polymorphically the target of aPPrismwith a value.Method parameters in io.atlassian.fugue.optic with type arguments of type Option Modifier and Type Method Description java.util.function.Function<S,Option<S>>Lens. modifyOptionF(java.util.function.Function<A,Option<A>> f)java.util.function.Function<S,Option<S>>Optional. modifyOptionF(java.util.function.Function<A,Option<A>> f)java.util.function.Function<S,Option<T>>PIso. modifyOptionF(java.util.function.Function<A,Option<B>> f)modify polymorphically the target of aPIsowith an Applicative functionabstract java.util.function.Function<S,Option<T>>PLens. modifyOptionF(java.util.function.Function<A,Option<B>> f)modify polymorphically the target of aPLenswith an Applicative functionabstract java.util.function.Function<S,Option<T>>POptional. modifyOptionF(java.util.function.Function<A,Option<B>> f)modify polymorphically the target of aPOptionalwith an Applicative functionjava.util.function.Function<S,Option<T>>PPrism. modifyOptionF(java.util.function.Function<A,Option<B>> f)modify polymorphically the target of aPPrismwith an Applicative functionabstract java.util.function.Function<S,Option<T>>PTraversal. modifyOptionF(java.util.function.Function<A,Option<B>> f)modify polymorphically the target of aPTraversalwith an Applicative functionjava.util.function.Function<S,Option<S>>Traversal. modifyOptionF(java.util.function.Function<A,Option<A>> f)static <S,A>
Optional<S,A>Optional. optional(java.util.function.Function<S,Option<A>> getOption, java.util.function.Function<A,java.util.function.Function<S,S>> set)static <S,A>
Prism<S,A>Prism. prism(java.util.function.Function<S,Option<A>> getOption, java.util.function.Function<A,S> reverseGet) -
Uses of Option in io.atlassian.fugue.optic.law
Methods in io.atlassian.fugue.optic.law that return types with arguments of type Option Modifier and Type Method Description IsEq<Option<A>>TraversalLaws. headOption(S s)headOption returns the first element of getAllIsEq<Option<S>>IsoLaws. modifyOptionFPoint(S s)modifyF Applicative.point(_) = Applicative.point(_)IsEq<Option<S>>LensLaws. modifyOptionFPoint(S s)modifyF Applicative.point(_) = Applicative.point(_)IsEq<Option<S>>OptionalLaws. modifyOptionFPoint(S s)modifyF Applicative.point(_) = Applicative.point(_)IsEq<Option<S>>PrismLaws. modifyOptionFPoint(S s)modifyF Applicative.point(_) = Applicative.point(_)IsEq<Option<S>>TraversalLaws. modifyOptionFPoint(S s)modifyF Applicative.point(_) = Applicative.point(_)IsEq<Option<S>>OptionalLaws. modifyOptionIdentity(S s)modifyOption with id is isomorphomic to isMatchingIsEq<Option<S>>PrismLaws. modifyOptionIdentity(S s)modifyOption with id is isomorphomic to isMatchingIsEq<Option<A>>PrismLaws. roundTripOtherWay(A a)reverseGet produces a valueIsEq<Option<A>>OptionalLaws. setGetOption(S s, A a)get what you setIsEq<Option<S>>OptionalLaws. setOption(S s, A a)setOption only succeeds when the Optional is matchingIsEq<Option<S>>PrismLaws. setOption(S s, A a)setOption only succeeds when the Prism is matching -
Uses of Option in io.atlassian.fugue.optic.std
Methods in io.atlassian.fugue.optic.std that return types with arguments of type Option Modifier and Type Method Description static <A> Iso<Option<A>,java.util.Optional<A>>OptionOptics. optionToOptional()static <A,B>
PPrism<Option<A>,Option<B>,A,B>OptionOptics. pSome()static <A,B>
PPrism<Option<A>,Option<B>,A,B>OptionOptics. pSome()static <A> Prism<Option<A>,A>OptionOptics. some()
-