Uses of Class
io.atlassian.fugue.Either
-
Packages that use Either Package Description io.atlassian.fugue io.atlassian.fugue.extensions.step io.atlassian.fugue.hamcrest io.atlassian.fugue.optic io.atlassian.fugue.optic.law io.atlassian.fugue.optic.std -
-
Uses of Either in io.atlassian.fugue
Subclasses of Either in io.atlassian.fugue Modifier and Type Class Description (package private) static classEither.Left<L,R>(package private) static classEither.Right<L,R>Methods in io.atlassian.fugue that return Either Modifier and Type Method Description <X> Either<L,X>Either. ap(Either<L,java.util.function.Function<R,X>> either)Function application on this projection's value.<X> Either<X,R>Either.LeftProjection. ap(Either<java.util.function.Function<L,X>,R> either)Function application on this projection's value.<X> Either<L,X>Either.RightProjection. ap(Either<L,java.util.function.Function<R,X>> either)Function application on this projection's value.<X> Either<L,X>Either. apply(Either<L,java.util.function.Function<R,X>> either)Deprecated.<X> Either<X,R>Either.LeftProjection. apply(Either<java.util.function.Function<L,X>,R> either)Deprecated.since 3.0<X> Either<L,X>Either.RightProjection. apply(Either<L,java.util.function.Function<R,X>> either)Deprecated.since 3.0 see ap(package private) <X> Either<L,X>Either.LeftProjection. as()Coerces our right type as X.(package private) <X> Either<X,R>Either.RightProjection. as()Coerces our left type as X.abstract <LL,RR>
Either<LL,RR>Either. bimap(java.util.function.Function<? super L,? extends LL> ifLeft, java.util.function.Function<? super R,? extends RR> ifRight)Map the given functions across the appropriate side.<LL,RR>
Either<LL,RR>Either.Left. bimap(java.util.function.Function<? super L,? extends LL> ifLeft, java.util.function.Function<? super R,? extends RR> ifRight)<LL,RR>
Either<LL,RR>Either.Right. bimap(java.util.function.Function<? super L,? extends LL> ifLeft, java.util.function.Function<? super R,? extends RR> ifRight)static <L,R>
Either<L,R>Eithers. cond(boolean predicate, L left, R right)Creates an Either based on a boolean expression.Either<L,R>Either.AbstractProjection. either()Either<L,R>Either.Projection. either()The either value underlying this projection.Either<L,R>Either. filterOrElse(java.util.function.Predicate<? super R> p, java.util.function.Supplier<? extends L> orElseSupplier)Return aRightif this is aRightand the contained values satisfies the given predicate.Either<L,R>Either.LeftProjection. filterOrElse(java.util.function.Predicate<? super L> p, java.util.function.Supplier<? extends R> orElseSupplier)Return aLeftif this is aLeftand the contained values satisfies the given predicate.Either<L,R>Either.RightProjection. filterOrElse(java.util.function.Predicate<? super R> p, java.util.function.Supplier<? extends L> orElseSupplier)Return aRightif this is aRightand the contained values satisfies the given predicate.<X,LL extends L>
Either<L,X>Either. flatMap(java.util.function.Function<? super R,Either<LL,X>> f)Binds the given function across the right hand side value if it is one.<X,RR extends R>
Either<X,R>Either.LeftProjection. flatMap(java.util.function.Function<? super L,Either<X,RR>> f)Binds the given function across this projection's value if it has one.<X,LL extends L>
Either<L,X>Either.RightProjection. flatMap(java.util.function.Function<? super R,Either<LL,X>> f)Binds the given function across this projection's value if it has one.static <L,R>
Either<L,R>Either. left(L left)left.<X> Either<X,R>Either. leftMap(java.util.function.Function<? super L,X> f)Map the given function across the left hand side value if it is one.<X> Either<X,R>Either.LeftProjection. map(java.util.function.Function<? super L,X> f)Map the given function across this projection's value if it has one.<X> Either<L,X>Either. map(java.util.function.Function<? super R,X> f)Map the given function across the right hand side value if it is one.<X> Either<L,X>Either.RightProjection. map(java.util.function.Function<? super R,X> f)Map the given function across this projection's value if it has one.Either<L,R>Either. orElse(Either<? extends L,? extends R> orElse)If this is a right, return the same right.Either<L,R>Either. orElse(java.util.function.Supplier<? extends Either<? extends L,? extends R>> orElse)If this is a right, return the same right.static <L,R>
Either<L,R>Either. right(R right)right.<X> Either<X,R>Either.LeftProjection. sequence(Either<X,R> e)Anonymous bind through this projection.<X> Either<L,X>Either.RightProjection. sequence(Either<L,X> e)Anonymous bind through this projection.<X> Either<L,X>Either. sequence(Either<L,X> e)Will return the supplied Either if this one is right, otherwise this one if left.static <L,R>
Either<java.lang.Iterable<L>,R>Eithers. sequenceLeft(java.lang.Iterable<Either<L,R>> eithers)Collect the left values if there are only lefts, otherwise return the first right encountered.static <L,R,A,C>
Either<C,R>Eithers. sequenceLeft(java.lang.Iterable<Either<L,R>> eithers, java.util.stream.Collector<L,A,C> collector)Collect the left values if there are only lefts, otherwise return the first right encountered.static <L,R>
Either<L,java.lang.Iterable<R>>Eithers. sequenceRight(java.lang.Iterable<Either<L,R>> eithers)Collect the right values if there are only rights, otherwise return the first left encountered.static <L,R,A,C>
Either<L,C>Eithers. sequenceRight(java.lang.Iterable<Either<L,R>> eithers, java.util.stream.Collector<R,A,C> collector)Collect the right values if there are only rights, otherwise return the first left encountered.Either<R,L>Either.Left. swap()Either<R,L>Either.Right. swap()abstract Either<R,L>Either. swap()If this is a left, then return the left value in right, or vice versa.Either<java.lang.Exception,A>Try.Delayed. toEither()Either<java.lang.Exception,A>Try.Failure. toEither()Either<java.lang.Exception,A>Try.Success. toEither()abstract Either<java.lang.Exception,A>Try. toEither()Convert this Try to anEither, becoming a left if this is a failure and a right if this is a success.<X> Either<A,X>Option. toLeft(java.util.function.Supplier<X> right)Creates an Either from this Option.<X> Either<X,A>Option. toRight(java.util.function.Supplier<X> left)Creates an Either from this Option.static <LL,L extends LL,R>
Either<LL,R>Eithers. upcastLeft(Either<L,R> e)Upcasts aneitherof left type L to an either of left type LL, which is a super type of L, keeping the right type unchanged.static <L,RR,R extends RR>
Either<L,RR>Eithers. upcastRight(Either<L,R> e)Upcasts aneitherof right type R to an either of right type RR, which is a super type of R, keeping the left type unchanged.Methods in io.atlassian.fugue that return types with arguments of type Either Modifier and Type Method Description static <L,R>
Monoid<Either<L,R>>Monoids. either(Semigroup<L> lS, Monoid<R> rM)A monoid Sums up values inside eitherSemigroups.either(io.atlassian.fugue.Semigroup<L>, io.atlassian.fugue.Semigroup<R>).static <L,R>
Semigroup<Either<L,R>>Semigroups. either(Semigroup<L> lS, Semigroup<R> rS)Sums up values inside either, if both are left or right.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.static <L,R>
java.util.function.Predicate<Either<L,R>>Eithers. isLeft()A predicate that tests if the supplied either is a left.static <L,R>
java.util.function.Predicate<Either<L,R>>Eithers. isRight()A predicate that tests if the supplied either is a right.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 <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 <L,R>
java.util.stream.Collector<Either<L,R>,?,Either<java.util.List<L>,R>>FugueCollectors. toEitherLeft()Collect the left values if there are only lefts, otherwise return the first right encountered.static <L,R>
java.util.stream.Collector<Either<L,R>,?,Either<java.util.List<L>,R>>FugueCollectors. toEitherLeft()Collect the left values if there are only lefts, otherwise return the first right encountered.static <L,R,A,B>
java.util.stream.Collector<Either<L,R>,?,Either<B,R>>FugueCollectors. toEitherLeft(java.util.stream.Collector<L,A,B> lCollector)Collect the left values if there are only lefts, otherwise return the first right encountered.static <L,R,A,B>
java.util.stream.Collector<Either<L,R>,?,Either<B,R>>FugueCollectors. toEitherLeft(java.util.stream.Collector<L,A,B> lCollector)Collect the left values if there are only lefts, otherwise return the first right encountered.static <L,R>
java.util.stream.Collector<Either<L,R>,?,Either<L,java.util.List<R>>>FugueCollectors. toEitherRight()Collect the right values if there are only rights, otherwise return the first left encountered.static <L,R>
java.util.stream.Collector<Either<L,R>,?,Either<L,java.util.List<R>>>FugueCollectors. toEitherRight()Collect the right values if there are only rights, otherwise return the first left encountered.static <L,R,A,B>
java.util.stream.Collector<Either<L,R>,?,Either<L,B>>FugueCollectors. toEitherRight(java.util.stream.Collector<R,A,B> rCollector)Collect the right values if there are only rights, otherwise return the first left encountered.static <L,R,A,B>
java.util.stream.Collector<Either<L,R>,?,Either<L,B>>FugueCollectors. toEitherRight(java.util.stream.Collector<R,A,B> rCollector)Collect the right values if there are only rights, otherwise return the first left encountered.static <L,R>
java.util.function.Function<L,Either<L,R>>Eithers. toLeft()Function to convert from an value to aEither.Leftcontaining that value.static <L,R>
java.util.function.Function<L,Either<L,R>>Eithers. toLeft(java.lang.Class<L> leftType, java.lang.Class<R> rightType)Function to convert from a value to aEither.Leftcontaining that value.static <L,R>
java.util.function.Supplier<Either<L,R>>Eithers. toLeft(L l)Supplier returning aEither.Left.static <L,R>
java.util.function.Supplier<Either<L,R>>Eithers. toLeft(L l, java.lang.Class<R> rightType)Supplier returning aEither.Left.static <L,R>
java.util.function.Function<R,Either<L,R>>Eithers. toRight()Function to convert from an value to aEither.Right.static <L,R>
java.util.function.Function<R,Either<L,R>>Eithers. toRight(java.lang.Class<L> leftType, java.lang.Class<R> rightType)Function to convert from a value to aEither.Rightcontaining that value.static <L,R>
java.util.function.Supplier<Either<L,R>>Eithers. toRight(java.lang.Class<L> leftType, R r)Supplier returning aEither.Right.static <L,R>
java.util.function.Supplier<Either<L,R>>Eithers. toRight(R r)Supplier returning aEither.Right.Methods in io.atlassian.fugue with parameters of type Either Modifier and Type Method Description <X> Either<L,X>Either. ap(Either<L,java.util.function.Function<R,X>> either)Function application on this projection's value.<X> Either<X,R>Either.LeftProjection. ap(Either<java.util.function.Function<L,X>,R> either)Function application on this projection's value.<X> Either<L,X>Either.RightProjection. ap(Either<L,java.util.function.Function<R,X>> either)Function application on this projection's value.<X> Either<L,X>Either. apply(Either<L,java.util.function.Function<R,X>> either)Deprecated.<X> Either<X,R>Either.LeftProjection. apply(Either<java.util.function.Function<L,X>,R> either)Deprecated.since 3.0<X> Either<L,X>Either.RightProjection. apply(Either<L,java.util.function.Function<R,X>> either)Deprecated.since 3.0 see apstatic <X extends java.lang.Exception,A>
AEithers. getOrThrow(Either<X,A> either)Simplifies extracting a value or throwing a checked exception from an Either.static <T> TEithers. merge(Either<T,T> either)Extracts an object from an Either, regardless of the side in which it is stored, provided both sides contain the same type.Either<L,R>Either. orElse(Either<? extends L,? extends R> orElse)If this is a right, return the same right.<X> Either<X,R>Either.LeftProjection. sequence(Either<X,R> e)Anonymous bind through this projection.<X> Either<L,X>Either.RightProjection. sequence(Either<L,X> e)Anonymous bind through this projection.<X> Either<L,X>Either. sequence(Either<L,X> e)Will return the supplied Either if this one is right, otherwise this one if left.static <LL,L extends LL,R>
Either<LL,R>Eithers. upcastLeft(Either<L,R> e)Upcasts aneitherof left type L to an either of left type LL, which is a super type of L, keeping the right type unchanged.static <L,RR,R extends RR>
Either<L,RR>Eithers. upcastRight(Either<L,R> e)Upcasts aneitherof right type R to an either of right type RR, which is a super type of R, keeping the left type unchanged.Method parameters in io.atlassian.fugue with type arguments of type Either Modifier and Type Method Description static <L,R>
java.lang.Iterable<L>Eithers. filterLeft(java.lang.Iterable<Either<L,R>> it)Takes anIterableofeithers, and collects the left values of every either which has a left valuestatic <L,R>
java.lang.Iterable<R>Eithers. filterRight(java.lang.Iterable<Either<L,R>> it)Takes anIterableofeithers, and collects the right values of every either which has a left value<X,LL extends L>
Either<L,X>Either. flatMap(java.util.function.Function<? super R,Either<LL,X>> f)Binds the given function across the right hand side value if it is one.<X,RR extends R>
Either<X,R>Either.LeftProjection. flatMap(java.util.function.Function<? super L,Either<X,RR>> f)Binds the given function across this projection's value if it has one.<X,LL extends L>
Either<L,X>Either.RightProjection. flatMap(java.util.function.Function<? super R,Either<LL,X>> f)Binds the given function across this projection's value if it has one.Either<L,R>Either. orElse(java.util.function.Supplier<? extends Either<? extends L,? extends R>> orElse)If this is a right, return the same right.static <L,R>
Either<java.lang.Iterable<L>,R>Eithers. sequenceLeft(java.lang.Iterable<Either<L,R>> eithers)Collect the left values if there are only lefts, otherwise return the first right encountered.static <L,R,A,C>
Either<C,R>Eithers. sequenceLeft(java.lang.Iterable<Either<L,R>> eithers, java.util.stream.Collector<L,A,C> collector)Collect the left values if there are only lefts, otherwise return the first right encountered.static <L,R>
Either<L,java.lang.Iterable<R>>Eithers. sequenceRight(java.lang.Iterable<Either<L,R>> eithers)Collect the right values if there are only rights, otherwise return the first left encountered.static <L,R,A,C>
Either<L,C>Eithers. sequenceRight(java.lang.Iterable<Either<L,R>> eithers, java.util.stream.Collector<R,A,C> collector)Collect the right values if there are only rights, otherwise return the first left encountered. -
Uses of Either in io.atlassian.fugue.extensions.step
Fields in io.atlassian.fugue.extensions.step declared as Either Modifier and Type Field Description private Either<LEFT,A>EitherStep1. either1private Either<LEFT,A>EitherStep2. either1private Either<LEFT,A>EitherStep3. either1private Either<LEFT,A>EitherStep4. either1private Either<LEFT,A>EitherStep5. either1private Either<LEFT,A>EitherStep6. either1private Either<LEFT,B>EitherStep2. either2private Either<LEFT,B>EitherStep3. either2private Either<LEFT,B>EitherStep4. either2private Either<LEFT,B>EitherStep5. either2private Either<LEFT,B>EitherStep6. either2private Either<LEFT,C>EitherStep3. either3private Either<LEFT,C>EitherStep4. either3private Either<LEFT,C>EitherStep5. either3private Either<LEFT,C>EitherStep6. either3private Either<LEFT,D>EitherStep4. either4private Either<LEFT,D>EitherStep5. either4private Either<LEFT,D>EitherStep6. either4private Either<LEFT,E>EitherStep5. either5private Either<LEFT,E>EitherStep6. either5private Either<LEFT,F>EitherStep6. either6Methods in io.atlassian.fugue.extensions.step that return Either Modifier and Type Method Description <Z> Either<LEFT,Z>EitherStep1. 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 aRight<Z> Either<LEFT,Z>EitherStep2. 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 aRight<Z> Either<LEFT,Z>EitherStep3. 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 aRight<Z> Either<LEFT,Z>EitherStep4. 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 aRight<Z> Either<LEFT,Z>EitherStep5. 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 aRight<Z> Either<LEFT,Z>EitherStep6. 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 aRightMethods in io.atlassian.fugue.extensions.step with parameters of type Either Modifier and Type Method Description static <A,LEFT>
EitherStep1<A,LEFT>Steps. begin(Either<LEFT,A> either)Begin a new Steps expresison, using theEithertype.Method parameters in io.atlassian.fugue.extensions.step with type arguments of type Either Modifier and Type Method Description <B,LL extends LEFT>
EitherStep2<A,B,LEFT>EitherStep1. then(java.util.function.Function<? super A,Either<LL,B>> functor)Apply the provided function with the previous Step results.<B,LL extends LEFT>
EitherStep2<A,B,LEFT>EitherStep1. then(java.util.function.Supplier<Either<LL,B>> supplier)Apply the provided supplier with the previous Step results.<C,LL extends LEFT>
EitherStep3<A,B,C,LEFT>EitherStep2. then(java.util.function.BiFunction<? super A,? super B,Either<LL,C>> functor)Apply the provided function with the previous Step results.<C,LL extends LEFT>
EitherStep3<A,B,C,LEFT>EitherStep2. then(java.util.function.Supplier<Either<LL,C>> supplier)Apply the provided supplier with the previous Step results.<D,LL extends LEFT>
EitherStep4<A,B,C,D,LEFT>EitherStep3. then(Function3<? super A,? super B,? super C,Either<LL,D>> functor)Apply the provided function with the previous Step results.<D,LL extends LEFT>
EitherStep4<A,B,C,D,LEFT>EitherStep3. then(java.util.function.Supplier<Either<LL,D>> supplier)Apply the provided supplier with the previous Step results.<E,LL extends LEFT>
EitherStep5<A,B,C,D,E,LEFT>EitherStep4. then(Function4<? super A,? super B,? super C,? super D,Either<LL,E>> functor)Apply the provided function with the previous Step results.<E,LL extends LEFT>
EitherStep5<A,B,C,D,E,LEFT>EitherStep4. then(java.util.function.Supplier<Either<LL,E>> supplier)Apply the provided supplier with the previous Step results.<F,LL extends LEFT>
EitherStep6<A,B,C,D,E,F,LEFT>EitherStep5. then(Function5<? super A,? super B,? super C,? super D,? super E,Either<LL,F>> functor)Apply the provided function with the previous Step results.<F,LL extends LEFT>
EitherStep6<A,B,C,D,E,F,LEFT>EitherStep5. then(java.util.function.Supplier<Either<LL,F>> supplier)Apply the provided supplier with the previous Step results.Constructors in io.atlassian.fugue.extensions.step with parameters of type Either Constructor Description EitherStep1(Either<LEFT,A> either1)EitherStep2(Either<LEFT,A> either1, Either<LEFT,B> either2)EitherStep3(Either<LEFT,A> either1, Either<LEFT,B> either2, Either<LEFT,C> either3)EitherStep4(Either<LEFT,A> either1, Either<LEFT,B> either2, Either<LEFT,C> either3, Either<LEFT,D> either4)EitherStep5(Either<LEFT,A> either1, Either<LEFT,B> either2, Either<LEFT,C> either3, Either<LEFT,D> either4, Either<LEFT,E> either5)EitherStep6(Either<LEFT,A> either1, Either<LEFT,B> either2, Either<LEFT,C> either3, Either<LEFT,D> either4, Either<LEFT,E> either5, Either<LEFT,F> either6) -
Uses of Either in io.atlassian.fugue.hamcrest
Methods in io.atlassian.fugue.hamcrest that return types with arguments of type Either Modifier and Type Method Description static <L> org.hamcrest.Matcher<Either<L,?>>EitherMatchers. isLeft(org.hamcrest.Matcher<? super L> subMatcher)static <R> org.hamcrest.Matcher<Either<?,R>>EitherMatchers. isRight(org.hamcrest.Matcher<? super R> subMatcher)Methods in io.atlassian.fugue.hamcrest with parameters of type Either Modifier and Type Method Description protected voidEitherMatchers.LeftMatcher. describeMismatchSafely(Either<L,?> actual, org.hamcrest.Description mismatchDescription)protected voidEitherMatchers.RightMatcher. describeMismatchSafely(Either<?,R> actual, org.hamcrest.Description mismatchDescription)protected booleanEitherMatchers.LeftMatcher. matchesSafely(Either<L,?> actual)protected booleanEitherMatchers.RightMatcher. matchesSafely(Either<?,R> actual) -
Uses of Either in io.atlassian.fugue.optic
Methods in io.atlassian.fugue.optic that return Either Modifier and Type Method Description Either<S,A>Optional. getOrModify(S s)abstract Either<T,A>POptional. getOrModify(S s)get the target of aPOptionalor modify the source in case there is no targetabstract Either<T,A>PPrism. getOrModify(S s)get the target of aPPrismor modify the source in case there is no targetEither<S,A>Prism. getOrModify(S s)Methods in io.atlassian.fugue.optic that return types with arguments of type Either Modifier and Type Method Description static <A> Fold<Either<A,A>,A>Fold. codiagonal()static <A> Getter<Either<A,A>,A>Getter. codiagonal()static <S> Setter<Either<S,S>,S>Setter. codiagonal()static <S> Traversal<Either<S,S>,S>Traversal. codiagonal()<L> java.util.function.Function<S,Either<L,S>>Lens. modifyEitherF(java.util.function.Function<A,Either<L,A>> f)<L> java.util.function.Function<S,Either<L,S>>Optional. modifyEitherF(java.util.function.Function<A,Either<L,A>> f)<L> java.util.function.Function<S,Either<L,T>>PIso. modifyEitherF(java.util.function.Function<A,Either<L,B>> f)modify polymorphically the target of aPIsowith an Applicative functionabstract <L> java.util.function.Function<S,Either<L,T>>PLens. modifyEitherF(java.util.function.Function<A,Either<L,B>> f)modify polymorphically the target of aPLenswith an Applicative functionabstract <L> java.util.function.Function<S,Either<L,T>>POptional. modifyEitherF(java.util.function.Function<A,Either<L,B>> f)modify polymorphically the target of aPOptionalwith an Applicative function<L> java.util.function.Function<S,Either<L,T>>PPrism. modifyEitherF(java.util.function.Function<A,Either<L,B>> f)modify polymorphically the target of aPPrismwith an Applicative functionabstract <L> java.util.function.Function<S,Either<L,T>>PTraversal. modifyEitherF(java.util.function.Function<A,Either<L,B>> f)modify polymorphically the target of aPTraversalwith an Applicative function<L> java.util.function.Function<S,Either<L,S>>Traversal. modifyEitherF(java.util.function.Function<A,Either<L,A>> f)static <S,T>
PSetter<Either<S,S>,Either<T,T>,S,T>PSetter. pCodiagonal()static <S,T>
PSetter<Either<S,S>,Either<T,T>,S,T>PSetter. pCodiagonal()static <S,T>
PTraversal<Either<S,S>,Either<T,T>,S,T>PTraversal. pCodiagonal()static <S,T>
PTraversal<Either<S,S>,Either<T,T>,S,T>PTraversal. pCodiagonal()<S1> Fold<Either<S,S1>,A>Fold. sum(Fold<S1,A> other)join twoFoldwith the same target<S1> Getter<Either<S,S1>,A>Getter. sum(Getter<S1,A> other)join twoGetterwith the same target<S1> Lens<Either<S,S1>,A>Lens. sum(Lens<S1,A> other)join twoLenswith the same target<S1> Optional<Either<S,S1>,A>Optional. sum(Optional<S1,A> other)join twoOptionalwith the same target<S1,T1>
PLens<Either<S,S1>,Either<T,T1>,A,B>PLens. sum(PLens<S1,T1,A,B> other)join twoPLenswith the same target<S1,T1>
PLens<Either<S,S1>,Either<T,T1>,A,B>PLens. sum(PLens<S1,T1,A,B> other)join twoPLenswith the same target<S1,T1>
POptional<Either<S,S1>,Either<T,T1>,A,B>POptional. sum(POptional<S1,T1,A,B> other)join twoPOptionalwith the same target<S1,T1>
POptional<Either<S,S1>,Either<T,T1>,A,B>POptional. sum(POptional<S1,T1,A,B> other)join twoPOptionalwith the same target<S1,T1>
PSetter<Either<S,S1>,Either<T,T1>,A,B>PSetter. sum(PSetter<S1,T1,A,B> other)join twoPSetterwith the same target<S1,T1>
PSetter<Either<S,S1>,Either<T,T1>,A,B>PSetter. sum(PSetter<S1,T1,A,B> other)join twoPSetterwith the same target<S1,T1>
PTraversal<Either<S,S1>,Either<T,T1>,A,B>PTraversal. sum(PTraversal<S1,T1,A,B> other)join twoPTraversalwith the same target<S1,T1>
PTraversal<Either<S,S1>,Either<T,T1>,A,B>PTraversal. sum(PTraversal<S1,T1,A,B> other)join twoPTraversalwith the same target<S1> Setter<Either<S,S1>,A>Setter. sum(Setter<S1,A> other)join twoSetterwith the same target<S1> Traversal<Either<S,S1>,A>Traversal. sum(Traversal<S1,A> other)join twoTraversalwith the same targetMethod parameters in io.atlassian.fugue.optic with type arguments of type Either Modifier and Type Method Description <L> java.util.function.Function<S,Either<L,S>>Lens. modifyEitherF(java.util.function.Function<A,Either<L,A>> f)<L> java.util.function.Function<S,Either<L,S>>Optional. modifyEitherF(java.util.function.Function<A,Either<L,A>> f)<L> java.util.function.Function<S,Either<L,T>>PIso. modifyEitherF(java.util.function.Function<A,Either<L,B>> f)modify polymorphically the target of aPIsowith an Applicative functionabstract <L> java.util.function.Function<S,Either<L,T>>PLens. modifyEitherF(java.util.function.Function<A,Either<L,B>> f)modify polymorphically the target of aPLenswith an Applicative functionabstract <L> java.util.function.Function<S,Either<L,T>>POptional. modifyEitherF(java.util.function.Function<A,Either<L,B>> f)modify polymorphically the target of aPOptionalwith an Applicative function<L> java.util.function.Function<S,Either<L,T>>PPrism. modifyEitherF(java.util.function.Function<A,Either<L,B>> f)modify polymorphically the target of aPPrismwith an Applicative functionabstract <L> java.util.function.Function<S,Either<L,T>>PTraversal. modifyEitherF(java.util.function.Function<A,Either<L,B>> f)modify polymorphically the target of aPTraversalwith an Applicative function<L> java.util.function.Function<S,Either<L,S>>Traversal. modifyEitherF(java.util.function.Function<A,Either<L,A>> f)static <S,T,A,B>
POptional<S,T,A,B>POptional. pOptional(java.util.function.Function<S,Either<T,A>> getOrModify, java.util.function.Function<B,java.util.function.Function<S,T>> set)create aPOptionalusing the canonical functions: getOrModify and setstatic <S,T,A,B>
PPrism<S,T,A,B>PPrism. pPrism(java.util.function.Function<S,Either<T,A>> getOrModify, java.util.function.Function<B,T> reverseGet)create aPPrismusing the canonical functions: getOrModify and reverseGet -
Uses of Either in io.atlassian.fugue.optic.law
Methods in io.atlassian.fugue.optic.law that return types with arguments of type Either Modifier and Type Method Description IsEq<Either<java.lang.String,S>>IsoLaws. modifyEitherFPoint(S s)modifyF Applicative.point(_) = Applicative.point(_)IsEq<Either<java.lang.String,S>>LensLaws. modifyEitherFPoint(S s)modifyF Applicative.point(_) = Applicative.point(_)IsEq<Either<java.lang.String,S>>OptionalLaws. modifyEitherFPoint(S s)modifyF Applicative.point(_) = Applicative.point(_)IsEq<Either<java.lang.String,S>>PrismLaws. modifyEitherFPoint(S s)modifyF Applicative.point(_) = Applicative.point(_)IsEq<Either<java.lang.String,S>>TraversalLaws. modifyEitherFPoint(S s)modifyF Applicative.point(_) = Applicative.point(_) -
Uses of Either in io.atlassian.fugue.optic.std
Methods in io.atlassian.fugue.optic.std that return types with arguments of type Either Modifier and Type Method Description static <A,B>
Prism<Either<A,B>,A>EitherOptics. left()static <A,B,C>
PPrism<Either<A,B>,Either<C,B>,A,C>EitherOptics. pLeft()static <A,B,C>
PPrism<Either<A,B>,Either<C,B>,A,C>EitherOptics. pLeft()static <A,B,C>
PPrism<Either<A,B>,Either<A,C>,B,C>EitherOptics. pRight()static <A,B,C>
PPrism<Either<A,B>,Either<A,C>,B,C>EitherOptics. pRight()static <A,B>
Prism<Either<A,B>,B>EitherOptics. right()
-