Uses of Class
fj.data.Either
-
Packages that use Either Package Description fj Types that set the premise for the existence of Functional Java.fj.control Functional control abstractions.fj.control.parallel Parallelization strategies.fj.data Common algebraic data types.fj.data.hamt fj.data.optic Optic data types adapted from the Scala Monocle library and inspired by the Haskell Lens library. -
-
Uses of Either in fj
Methods in fj that return Either Modifier and Type Method Description <B,X>
Either<X,P1<B>>P1. traverseEither(F<A,Either<X,B>> f)
Traversable instance of P1 for Either<C,X>
Either<X,P2<A,C>>P2. traverseEither(F<B,Either<X,C>> f)
Methods in fj that return types with arguments of type Either Modifier and Type Method Description static <A,B>
Equal<Either<A,B>>Equal. eitherEqual(Equal<A> ea, Equal<B> eb)
An equal instance for theEither
type.static <A,B>
Hash<Either<A,B>>Hash. eitherHash(Hash<A> ha, Hash<B> hb)
A hash instance for theEither
type.default <C> F<A,Either<B,C>>
F. eitherLeftK()
Promotes this function so that it returns its result on the left side of an Either.static <A,B>
Ord<Either<A,B>>Ord. eitherOrd(Ord<A> oa, Ord<B> ob)
An order instance for theEither
type.default <C> F<A,Either<C,B>>
F. eitherRightK()
Promotes this function so that it returns its result on the right side of an Either.static <A,B>
Show<Either<A,B>>Show. eitherShow(Show<A> sa, Show<B> sb)
A show instance for theEither
type.default <X> F<Either<A,X>,Either<B,X>>
F. mapLeft()
Promotes this function to map over the left side of an Either.default <X> F<Either<A,X>,Either<B,X>>
F. mapLeft()
Promotes this function to map over the left side of an Either.default <X> F<Either<X,A>,Either<X,B>>
F. mapRight()
Promotes this function to map over the right side of an Either.default <X> F<Either<X,A>,Either<X,B>>
F. mapRight()
Promotes this function to map over the right side of an Either.default F<Either<B,A>,B>
F. onLeft()
Returns a function that returns the left side of a given Either, or this function applied to the right side.default F<Either<A,B>,B>
F. onRight()
Returns a function that returns the right side of a given Either, or this function applied to the left side.Method parameters in fj with type arguments of type Either Modifier and Type Method Description <B,X>
Either<X,P1<B>>P1. traverseEither(F<A,Either<X,B>> f)
Traversable instance of P1 for Either<C,X>
Either<X,P2<A,C>>P2. traverseEither(F<B,Either<X,C>> f)
-
Uses of Either in fj.control
Methods in fj.control that return Either Modifier and Type Method Description Either<P1<Trampoline<A>>,A>
Trampoline.Codense. resume()
Either<P1<Trampoline<A>>,A>
Trampoline.Pure. resume()
abstract Either<P1<Trampoline<A>>,A>
Trampoline. resume()
Runs a single step of this computation.Either<P1<Trampoline<A>>,A>
Trampoline.Suspend. resume()
Methods in fj.control that return types with arguments of type Either Modifier and Type Method Description static <A> F<Trampoline<A>,Either<P1<Trampoline<A>>,A>>
Trampoline. resume_()
-
Uses of Either in fj.control.parallel
Fields in fj.control.parallel with type parameters of type Either Modifier and Type Field Description private Actor<P2<Either<P1<A>,Actor<A>>,Promise<A>>>
Promise. actor
Methods in fj.control.parallel that return types with arguments of type Either Modifier and Type Method Description static <A> F<java.util.concurrent.Callable<A>,P1<Either<java.lang.Exception,A>>>
Callables. either()
Returns a transformation from a Callable to an Either.static <A> P1<Either<java.lang.Exception,A>>
Callables. either(java.util.concurrent.Callable<A> a)
Turns the given Callable into either an exception or the value in the Callable.static <A> F<P1<Either<java.lang.Exception,A>>,java.util.concurrent.Callable<A>>
Callables. fromEither()
Returns a transformation from an Either to a Callable.Method parameters in fj.control.parallel with type arguments of type Either Modifier and Type Method Description static <A> java.util.concurrent.Callable<A>
Callables. fromEither(F0<Either<java.lang.Exception,A>> e)
Turns a given Either value into the equivalent Callable.Constructor parameters in fj.control.parallel with type arguments of type Either Constructor Description Promise(Strategy<Unit> s, Actor<P2<Either<P1<A>,Actor<A>>,Promise<A>>> qa)
-
Uses of Either in fj.data
Subclasses of Either in fj.data Modifier and Type Class Description private static class
Either.Left<A,B>
private static class
Either.Right<A,B>
Fields in fj.data declared as Either Modifier and Type Field Description private Either<A,B>
Either.LeftProjection. e
private Either<A,B>
Either.RightProjection. e
private Either<E,T>
Validation. e
Methods in fj.data that return Either Modifier and Type Method Description <X> Either<X,B>
Either.LeftProjection. apply(Either<F<A,X>,B> e)
Function application on this projection's value.<X> Either<A,X>
Either.RightProjection. apply(Either<A,F<B,X>> e)
Function application on this projection's value.<X,Y>
Either<X,Y>Either. bimap(F<A,X> left, F<B,Y> right)
Map the given functions across the appropriate side.<X> Either<X,B>
Either.LeftProjection. bind(F<A,Either<X,B>> f)
Binds the given function across this projection's value if it has one.<X> Either<A,X>
Either.RightProjection. bind(F<B,Either<A,X>> f)
Binds the given function across this projection's value if it has one.Either<A,B>
Either.LeftProjection. either()
The either value underlying this projection.Either<A,B>
Either.RightProjection. either()
The either value underlying this projection.static <A,B>
Either<A,B>Either. iif(boolean c, F0<B> right, F0<A> left)
If the condition satisfies, return the given B in right, otherwise, return the given A in left.static <A,B>
Either<A,B>Either. joinLeft(Either<Either<A,B>,B> e)
Joins an either through left.static <A,B>
Either<A,B>Either. joinRight(Either<A,Either<A,B>> e)
Joins an either through right.static <A,B>
Either<A,B>Either. left(A a)
Construct a left value of either.<X> Either<X,B>
Either. leftMap(F<A,X> f)
Map the given function across this either's left projection.<X> Either<X,B>
Either.LeftProjection. map(F<A,X> f)
Map the given function across this projection's value if it has one.<X> Either<A,X>
Either.RightProjection. map(F<B,X> f)
Map the given function across this projection's value if it has one.static <A,B>
Either<A,B>Either. right(B b)
Construct a right value of either.<X> Either<A,X>
Either. rightMap(F<B,X> f)
Map the given function across this either's right.<X> Either<X,B>
Either.LeftProjection. sequence(Either<X,B> e)
Anonymous bind through this projection.<X> Either<A,X>
Either.RightProjection. sequence(Either<A,X> e)
Anonymous bind through this projection.static <L,B>
Either<L,List<B>>List. sequenceEither(List<Either<L,B>> list)
Sequence the given list and collect the output on the right side of an either.static <L,B>
Either<L,Option<B>>Option. sequenceEither(Option<Either<L,B>> option)
Sequence the given option and collect the output on the right side of an either.static <L,B>
Either<L,Seq<B>>Seq. sequenceEither(Seq<Either<L,B>> seq)
Sequence the given seq and collect the output on the right side of an either.static <L,B>
Either<L,Stream<B>>Stream. sequenceEither(Stream<Either<L,B>> stream)
Sequence the given stream and collect the output on the right side of an either.static <R,B>
Either<List<B>,R>List. sequenceEitherLeft(List<Either<B,R>> list)
Sequence the given list and collect the output on the left side of an either.static <R,B>
Either<Option<B>,R>Option. sequenceEitherLeft(Option<Either<B,R>> option)
Sequence the given option and collect the output on the left side of an either.static <R,B>
Either<Seq<B>,R>Seq. sequenceEitherLeft(Seq<Either<B,R>> seq)
Sequence the given seq and collect the output on the left side of an either.static <R,B>
Either<Stream<B>,R>Stream. sequenceEitherLeft(Stream<Either<B,R>> stream)
Sequence the given stream and collect the output on the left side of an either.static <E,R,C>
Either<Validation<E,C>,R>Validation. sequenceEitherLeft(Validation<E,Either<C,R>> validation)
Sequence the given validation and collect the output on the left side of an either.static <L,B>
Either<L,List<B>>List. sequenceEitherRight(List<Either<L,B>> list)
Sequence the given list and collect the output on the right side of an either.static <L,B>
Either<L,Option<B>>Option. sequenceEitherRight(Option<Either<L,B>> option)
Sequence the given option and collect the output on the right side of an either.static <L,B>
Either<L,Seq<B>>Seq. sequenceEitherRight(Seq<Either<L,B>> seq)
Sequence the given seq and collect the output on the right side of an either.static <L,B>
Either<L,Stream<B>>Stream. sequenceEitherRight(Stream<Either<L,B>> stream)
Sequence the given stream and collect the output on the right side of an either.static <E,L,C>
Either<L,Validation<E,C>>Validation. sequenceEitherRight(Validation<E,Either<L,C>> validation)
Sequence the given validation and collect the output on the right side of an either.static <A,X>
Either<List<A>,X>Either. sequenceLeft(List<Either<A,X>> a)
Sequences through the left side of the either monad with a list of values.static <B,X>
Either<X,List<B>>Either. sequenceRight(List<Either<X,B>> a)
Sequences through the right side of the either monad with a list of values.Either<B,A>
Either. swap()
If this is a left, then return the left value in right, or vice versa.<X> Either<X,A>
Array.ImmutableProjection. toEither(F0<X> x)
Returns an either projection of this array; the given argument inLeft
if empty, or the first element inRight
.<X> Either<X,A>
Array. toEither(F0<X> x)
Returns an either projection of this array; the given argument inLeft
if empty, or the first element inRight
.<X> Either<X,A>
List. toEither(F0<X> x)
Returns an either projection of this list; the given argument inLeft
if empty, or the first element inRight
.<X> Either<X,A>
Option. toEither(F0<X> x)
Returns an either projection of this optional value; the given argument inLeft
if no value, or the value inRight
.<X> Either<X,A>
Option. toEither(X x)
Returns an either projection of this optional value; the given argument inLeft
if no value, or the value inRight
.<X> Either<X,A>
Stream. toEither(F0<X> x)
Returns an either projection of this stream; the given argument inLeft
if empty, or the first element inRight
.Either<E,T>
Validation. toEither()
Returns an either projection of this validation.<B,E>
Either<E,List<B>>List. traverseEither(F<A,Either<E,B>> f)
Traverse through the List with given function.<L,B>
Either<L,Option<B>>Option. traverseEither(F<A,Either<L,B>> f)
Traverse this option with the given function and collect the output on the right side of an either.<B,L>
Either<L,Seq<B>>Seq. traverseEither(F<A,Either<L,B>> f)
Traverse this seq with the given function and collect the output on the right side of an either.<B,L>
Either<L,Stream<B>>Stream. traverseEither(F<A,Either<L,B>> f)
Traverse this stream with the given function and collect the output on the right side of an either.<R,B>
Either<List<B>,R>List. traverseEitherLeft(F<A,Either<B,R>> f)
Traverse this list with the given function and collect the output on the left side of an either.<R,B>
Either<Option<B>,R>Option. traverseEitherLeft(F<A,Either<B,R>> f)
Traverse this option with the given function and collect the output on the left side of an either.<R,B>
Either<Seq<B>,R>Seq. traverseEitherLeft(F<A,Either<B,R>> f)
Traverse this seq with the given function and collect the output on the left side of an either.<R,B>
Either<Stream<B>,R>Stream. traverseEitherLeft(F<A,Either<B,R>> f)
Traverse this stream with the given function and collect the output on the left side of an either.<R,C>
Either<Validation<E,C>,R>Validation. traverseEitherLeft(F<T,Either<C,R>> f)
Traverse this validation with the given function and collect the output on the left side of an either.<L,B>
Either<L,List<B>>List. traverseEitherRight(F<A,Either<L,B>> f)
Traverse this list with the given function and collect the output on the right side of an either.<L,B>
Either<L,Option<B>>Option. traverseEitherRight(F<A,Either<L,B>> f)
Traverse this option with the given function and collect the output on the right side of an either.<L,B>
Either<L,Seq<B>>Seq. traverseEitherRight(F<A,Either<L,B>> f)
Traverse this seq with the given function and collect the output on the right side of an either.<L,B>
Either<L,Stream<B>>Stream. traverseEitherRight(F<A,Either<L,B>> f)
Traverse this stream with the given function and collect the output on the right side of an either.<L,C>
Either<L,Validation<E,C>>Validation. traverseEitherRight(F<T,Either<L,C>> f)
Traverse this validation with the given function and collect the output on the right side of an either.private Either<A,P2<java.lang.Boolean,Set<A>>>
Set. tryUpdate(A a, F<A,A> f)
Methods in fj.data that return types with arguments of type Either Modifier and Type Method Description static <A,B>
F<P1<A>,F<Array<B>,Either<A,B>>>Conversions. Array_Either()
A function that converts arrays to eithers.static <E,T>
F<Validation<E,T>,Either<E,T>>Validation. either()
Returns a function that constructs an either with a validation.static <A,B,X>
F<Either<A,B>,X>Either. either_(F<A,X> left, F<B,X> right)
First class catamorphism for either.static <A,B>
F<Either<A,B>,Array<A>>Conversions. Either_ArrayA()
A function that converts eithers to arrays.static <A,B>
F<Either<A,B>,Array<B>>Conversions. Either_ArrayB()
A function that converts eithers to arrays.static <A,B>
F<Either<A,B>,java.util.concurrent.ArrayBlockingQueue<A>>Java. Either_ArrayBlockingQueueA(boolean fair)
A function that converts eithers to array blocking queues.static <A,B>
F<Either<A,B>,java.util.concurrent.ArrayBlockingQueue<B>>Java. Either_ArrayBlockingQueueB(boolean fair)
A function that converts eithers to array blocking queues.static <A,B>
F<Either<A,B>,java.util.ArrayList<A>>Java. Either_ArrayListA()
A function that converts eithers to array lists.static <A,B>
F<Either<A,B>,java.util.ArrayList<B>>Java. Either_ArrayListB()
A function that converts eithers to array lists.static <B> F<Either<java.lang.Boolean,B>,java.util.BitSet>
Java. Either_BitSetA()
A function that converts eithers to bit sets.static <A> F<Either<A,java.lang.Boolean>,java.util.BitSet>
Java. Either_BitSetB()
A function that converts eithers to bit sets.static <A,B>
F<Either<A,B>,java.util.concurrent.ConcurrentLinkedQueue<A>>Java. Either_ConcurrentLinkedQueueA()
A function that converts eithers to concurrent linked queues.static <A,B>
F<Either<A,B>,java.util.concurrent.ConcurrentLinkedQueue<B>>Java. Either_ConcurrentLinkedQueueB()
A function that converts eithers to concurrent linked queues.static <A,B>
F<Either<A,B>,java.util.concurrent.CopyOnWriteArrayList<A>>Java. Either_CopyOnWriteArrayListA()
A function that converts eithers to copy on write array lists.static <A,B>
F<Either<A,B>,java.util.concurrent.CopyOnWriteArrayList<B>>Java. Either_CopyOnWriteArrayListB()
A function that converts eithers to copy on write array lists.static <A,B>
F<Either<A,B>,java.util.concurrent.CopyOnWriteArraySet<A>>Java. Either_CopyOnWriteArraySetA()
A function that converts eithers to copy on write array sets.static <A,B>
F<Either<A,B>,java.util.concurrent.CopyOnWriteArraySet<B>>Java. Either_CopyOnWriteArraySetB()
A function that converts eithers to copy on write array sets.static <A extends java.util.concurrent.Delayed,B>
F<Either<A,B>,java.util.concurrent.DelayQueue<A>>Java. Either_DelayQueueA()
A function that converts eithers to delay queues.static <A,B extends java.util.concurrent.Delayed>
F<Either<A,B>,java.util.concurrent.DelayQueue<B>>Java. Either_DelayQueueB()
A function that converts eithers to delay queues.static <A extends java.lang.Enum<A>,B>
F<Either<A,B>,java.util.EnumSet<A>>Java. Either_EnumSetA()
A function that converts eithers to enum sets.static <A,B extends java.lang.Enum<B>>
F<Either<A,B>,java.util.EnumSet<B>>Java. Either_EnumSetB()
A function that converts eithers to enum sets.static <A,B>
F<Either<A,B>,java.util.HashSet<A>>Java. Either_HashSetA()
A function that converts eithers to hash sets.static <A,B>
F<Either<A,B>,java.util.HashSet<B>>Java. Either_HashSetB()
A function that converts eithers to hash sets.static <A,B>
F<Either<A,B>,java.util.concurrent.LinkedBlockingQueue<A>>Java. Either_LinkedBlockingQueueA()
A function that converts eithers to linked blocking queues.static <A,B>
F<Either<A,B>,java.util.concurrent.LinkedBlockingQueue<B>>Java. Either_LinkedBlockingQueueB()
A function that converts eithers to linked blocking queues.static <A,B>
F<Either<A,B>,java.util.LinkedHashSet<A>>Java. Either_LinkedHashSetA()
A function that converts eithers to linked hash sets.static <A,B>
F<Either<A,B>,java.util.LinkedHashSet<B>>Java. Either_LinkedHashSetB()
A function that converts eithers to linked hash sets.static <A,B>
F<Either<A,B>,java.util.LinkedList<A>>Java. Either_LinkedListA()
A function that converts eithers to linked lists.static <A,B>
F<Either<A,B>,java.util.LinkedList<B>>Java. Either_LinkedListB()
A function that converts eithers to linked lists.static <A,B>
F<Either<A,B>,List<A>>Conversions. Either_ListA()
A function that converts eithers to lists.static <A,B>
F<Either<A,B>,List<B>>Conversions. Either_ListB()
A function that converts eithers to lists.static <A,B>
F<Either<A,B>,Option<A>>Conversions. Either_OptionA()
A function that converts eithers to options.static <A,B>
F<Either<A,B>,Option<B>>Conversions. Either_OptionB()
A function that converts eithers to options.static <A,B>
F<Either<A,B>,java.util.concurrent.PriorityBlockingQueue<A>>Java. Either_PriorityBlockingQueueA()
A function that converts eithers to priority blocking queues.static <A,B>
F<Either<A,B>,java.util.concurrent.PriorityBlockingQueue<B>>Java. Either_PriorityBlockingQueueB()
A function that converts eithers to priority blocking queues.static <A,B>
F<Either<A,B>,java.util.Stack<A>>Java. Either_StackA()
A function that converts eithers to stacks.static <A,B>
F<Either<A,B>,java.util.Stack<B>>Java. Either_StackB()
A function that converts eithers to stacks.static <A,B>
F<Either<A,B>,Stream<A>>Conversions. Either_StreamA()
A function that converts eithers to streams.static <A,B>
F<Either<A,B>,Stream<B>>Conversions. Either_StreamB()
A function that converts eithers to streams.static <B> F<Either<java.lang.Character,B>,java.lang.String>
Conversions. Either_StringA()
A function that converts eithers to strings.static <A> F<Either<A,java.lang.Character>,java.lang.String>
Conversions. Either_StringB()
A function that converts eithers to strings.static <B> F<Either<java.lang.Character,B>,java.lang.StringBuffer>
Conversions. Either_StringBufferA()
A function that converts eithers to string buffers.static <A> F<Either<A,java.lang.Character>,java.lang.StringBuffer>
Conversions. Either_StringBufferB()
A function that converts eithers to string buffers.static <B> F<Either<java.lang.Character,B>,java.lang.StringBuilder>
Conversions. Either_StringBuilderA()
A function that converts eithers to string builders.static <A> F<Either<A,java.lang.Character>,java.lang.StringBuilder>
Conversions. Either_StringBuilderB()
A function that converts eithers to string builders.static <A,B>
F<Either<A,B>,java.util.concurrent.SynchronousQueue<A>>Java. Either_SynchronousQueueA(boolean fair)
A function that converts eithers to synchronous queues.static <A,B>
F<Either<A,B>,java.util.concurrent.SynchronousQueue<B>>Java. Either_SynchronousQueueB(boolean fair)
A function that converts eithers to synchronous queues.static <A,B>
F<Either<A,B>,java.util.TreeSet<A>>Java. Either_TreeSetA()
A function that converts eithers to tree sets.static <A,B>
F<Either<A,B>,java.util.TreeSet<B>>Java. Either_TreeSetB()
A function that converts eithers to tree sets.static <A,B>
F<Either<A,B>,java.util.Vector<A>>Java. Either_VectorA()
A function that converts eithers to vectors.static <A,B>
F<Either<A,B>,java.util.Vector<B>>Java. Either_VectorB()
A function that converts eithers to vectors.<X> Option<Either<A,X>>
Either.LeftProjection. filter(F<A,java.lang.Boolean> f)
ReturnsNone
if this projection has no value or if the given predicatep
does not hold for the value, otherwise, returns a right inSome
.<X> Option<Either<X,B>>
Either.RightProjection. filter(F<B,java.lang.Boolean> f)
ReturnsNone
if this projection has no value or if the given predicatep
does not hold for the value, otherwise, returns a left inSome
.static <A> F<java.util.concurrent.Future<A>,P1<Either<java.lang.Exception,A>>>
Java. Future_P1()
static <A,B>
F<A,Either<A,B>>Either. left_()
A function that constructs a left value of either.static <A,B,X>
F<F<A,X>,F<Either<A,B>,Either<X,B>>>Either. leftMap_()
Return a function that maps a given function across this either's left projection.static <A,B,X>
F<F<A,X>,F<Either<A,B>,Either<X,B>>>Either. leftMap_()
Return a function that maps a given function across this either's left projection.static <A,B>
F<P1<A>,F<List<B>,Either<A,B>>>Conversions. List_Either()
A function that converts lists to eithers.static <A,B>
F<P1<A>,F<Option<B>,Either<A,B>>>Conversions. Option_Either()
A function that converts options to eithers.static <A,B>
F<Either<A,B>,java.util.PriorityQueue<A>>Java. Option_PriorityQueueA()
A function that converts eithers to priority queues.static <A,B>
F<Either<A,B>,java.util.PriorityQueue<B>>Java. Option_PriorityQueueB()
A function that converts eithers to priority queues.static <A,B>
F<B,Either<A,B>>Either. right_()
A function that constructs a right value of either.static <A,B,X>
F<F<B,X>,F<Either<A,B>,Either<A,X>>>Either. rightMap_()
Return a function that maps a given function across this either's right projection.static <A,B,X>
F<F<B,X>,F<Either<A,B>,Either<A,X>>>Either. rightMap_()
Return a function that maps a given function across this either's right projection.static <A,B>
F<P1<A>,F<Stream<B>,Either<A,B>>>Conversions. Stream_Either()
A function that converts streams to eithers.static <A> F<P1<A>,F<java.lang.String,Either<A,java.lang.Character>>>
Conversions. String_Either()
A function that converts string to eithers.static <A> F<P1<A>,F<java.lang.StringBuffer,Either<A,java.lang.Character>>>
Conversions. StringBuffer_Either()
A function that converts string buffers to eithers.static <A> F<P1<A>,F<java.lang.StringBuilder,Either<A,java.lang.Character>>>
Conversions. StringBuilder_Either()
A function that converts string builders to eithers.static <A,X>
F<Option<A>,F<X,Either<X,A>>>Option. toEither()
A first-class version of the toEither method.<C> IO<Either<C,B>>
Either.LeftProjection. traverseIO(F<A,IO<C>> f)
Anonymous bind through this projection.<C> IO<Either<A,C>>
Either.RightProjection. traverseIO(F<B,IO<C>> f)
Traverse with a function that has IO effect<C> IO<Either<C,B>>
Either. traverseIOLeft(F<A,IO<C>> f)
Traversable instance of LeftProjection of Either for IO.<C> IO<Either<A,C>>
Either. traverseIORight(F<B,IO<C>> f)
Traversable instance of RightProjection of Either for IO.<C> List<Either<C,B>>
Either.LeftProjection. traverseList(F<A,List<C>> f)
Traverse with function that produces List (non-determinism).<C> List<Either<A,C>>
Either.RightProjection. traverseList(F<B,List<C>> f)
Traverse with function that produces List (non-determinism).<C> List<Either<C,B>>
Either. traverseListLeft(F<A,List<C>> f)
Traversable instance of LeftProjection of Either for List.<C> List<Either<A,C>>
Either. traverseListRight(F<B,List<C>> f)
Traversable instance of RightProjection of Either for List.<C> Option<Either<C,B>>
Either.LeftProjection. traverseOption(F<A,Option<C>> f)
<C> Option<Either<A,C>>
Either.RightProjection. traverseOption(F<B,Option<C>> f)
Traverse this right with the given function and collect the output as an option.<C> Option<Either<C,B>>
Either. traverseOptionLeft(F<A,Option<C>> f)
Traversable instance of LeftProjection of Either for Option.<C> Option<Either<A,C>>
Either. traverseOptionRight(F<B,Option<C>> f)
Traversable instance of RightProjection of Either for Option.<C> P1<Either<C,B>>
Either.LeftProjection. traverseP1(F<A,P1<C>> f)
Traverse this left with the given function and collect the output as a p1.<C> P1<Either<A,C>>
Either.RightProjection. traverseP1(F<B,P1<C>> f)
Traverse this right with the given function and collect the output as a p1.<C> Stream<Either<C,B>>
Either.LeftProjection. traverseStream(F<A,Stream<C>> f)
<C> Stream<Either<A,C>>
Either.RightProjection. traverseStream(F<B,Stream<C>> f)
<C> Stream<Either<C,B>>
Either. traverseStreamLeft(F<A,Stream<C>> f)
Traversable instance of LeftProjection of Either for Stream.<C> Stream<Either<A,C>>
Either. traverseStreamRight(F<B,Stream<C>> f)
Traversable instance of RightProjection of Either for Stream.static <E,T>
F<Either<E,T>,Validation<E,T>>Validation. validation()
Returns a function that constructs a validation with an either.Methods in fj.data with parameters of type Either Modifier and Type Method Description <X> Either<X,B>
Either.LeftProjection. apply(Either<F<A,X>,B> e)
Function application on this projection's value.<X> Either<A,X>
Either.RightProjection. apply(Either<A,F<B,X>> e)
Function application on this projection's value.static <A,B>
Either<A,B>Either. joinLeft(Either<Either<A,B>,B> e)
Joins an either through left.static <A,B>
Either<A,B>Either. joinRight(Either<A,Either<A,B>> e)
Joins an either through right.static <A> A
Either. reduce(Either<A,A> e)
Takes anEither
to its contained value within left or right.<X> Either<X,B>
Either.LeftProjection. sequence(Either<X,B> e)
Anonymous bind through this projection.<X> Either<A,X>
Either.RightProjection. sequence(Either<A,X> e)
Anonymous bind through this projection.static <E,T>
Validation<E,T>Validation. validation(Either<E,T> e)
Construct a validation using the given either value.Method parameters in fj.data with type arguments of type Either Modifier and Type Method Description <X> Either<X,B>
Either.LeftProjection. bind(F<A,Either<X,B>> f)
Binds the given function across this projection's value if it has one.<X> Either<A,X>
Either.RightProjection. bind(F<B,Either<A,X>> f)
Binds the given function across this projection's value if it has one.static <A,B>
Either<A,B>Either. joinLeft(Either<Either<A,B>,B> e)
Joins an either through left.static <A,B>
Either<A,B>Either. joinRight(Either<A,Either<A,B>> e)
Joins an either through right.static <A,B>
List<A>Either. lefts(List<Either<A,B>> es)
Returns all the left values in the given list.static <A,B>
List<B>Either. rights(List<Either<A,B>> es)
Returns all the right values in the given list.static <L,B>
Either<L,List<B>>List. sequenceEither(List<Either<L,B>> list)
Sequence the given list and collect the output on the right side of an either.static <L,B>
Either<L,Option<B>>Option. sequenceEither(Option<Either<L,B>> option)
Sequence the given option and collect the output on the right side of an either.static <L,B>
Either<L,Seq<B>>Seq. sequenceEither(Seq<Either<L,B>> seq)
Sequence the given seq and collect the output on the right side of an either.static <L,B>
Either<L,Stream<B>>Stream. sequenceEither(Stream<Either<L,B>> stream)
Sequence the given stream and collect the output on the right side of an either.static <R,B>
Either<List<B>,R>List. sequenceEitherLeft(List<Either<B,R>> list)
Sequence the given list and collect the output on the left side of an either.static <R,B>
Either<Option<B>,R>Option. sequenceEitherLeft(Option<Either<B,R>> option)
Sequence the given option and collect the output on the left side of an either.static <R,B>
Either<Seq<B>,R>Seq. sequenceEitherLeft(Seq<Either<B,R>> seq)
Sequence the given seq and collect the output on the left side of an either.static <R,B>
Either<Stream<B>,R>Stream. sequenceEitherLeft(Stream<Either<B,R>> stream)
Sequence the given stream and collect the output on the left side of an either.static <E,R,C>
Either<Validation<E,C>,R>Validation. sequenceEitherLeft(Validation<E,Either<C,R>> validation)
Sequence the given validation and collect the output on the left side of an either.static <L,B>
Either<L,List<B>>List. sequenceEitherRight(List<Either<L,B>> list)
Sequence the given list and collect the output on the right side of an either.static <L,B>
Either<L,Option<B>>Option. sequenceEitherRight(Option<Either<L,B>> option)
Sequence the given option and collect the output on the right side of an either.static <L,B>
Either<L,Seq<B>>Seq. sequenceEitherRight(Seq<Either<L,B>> seq)
Sequence the given seq and collect the output on the right side of an either.static <L,B>
Either<L,Stream<B>>Stream. sequenceEitherRight(Stream<Either<L,B>> stream)
Sequence the given stream and collect the output on the right side of an either.static <E,L,C>
Either<L,Validation<E,C>>Validation. sequenceEitherRight(Validation<E,Either<L,C>> validation)
Sequence the given validation and collect the output on the right side of an either.static <A,X>
Either<List<A>,X>Either. sequenceLeft(List<Either<A,X>> a)
Sequences through the left side of the either monad with a list of values.static <B,X>
Either<X,List<B>>Either. sequenceRight(List<Either<X,B>> a)
Sequences through the right side of the either monad with a list of values.<B,E>
Either<E,List<B>>List. traverseEither(F<A,Either<E,B>> f)
Traverse through the List with given function.<L,B>
Either<L,Option<B>>Option. traverseEither(F<A,Either<L,B>> f)
Traverse this option with the given function and collect the output on the right side of an either.<B,L>
Either<L,Seq<B>>Seq. traverseEither(F<A,Either<L,B>> f)
Traverse this seq with the given function and collect the output on the right side of an either.<B,L>
Either<L,Stream<B>>Stream. traverseEither(F<A,Either<L,B>> f)
Traverse this stream with the given function and collect the output on the right side of an either.<R,B>
Either<List<B>,R>List. traverseEitherLeft(F<A,Either<B,R>> f)
Traverse this list with the given function and collect the output on the left side of an either.<R,B>
Either<Option<B>,R>Option. traverseEitherLeft(F<A,Either<B,R>> f)
Traverse this option with the given function and collect the output on the left side of an either.<R,B>
Either<Seq<B>,R>Seq. traverseEitherLeft(F<A,Either<B,R>> f)
Traverse this seq with the given function and collect the output on the left side of an either.<R,B>
Either<Stream<B>,R>Stream. traverseEitherLeft(F<A,Either<B,R>> f)
Traverse this stream with the given function and collect the output on the left side of an either.<R,C>
Either<Validation<E,C>,R>Validation. traverseEitherLeft(F<T,Either<C,R>> f)
Traverse this validation with the given function and collect the output on the left side of an either.<L,B>
Either<L,List<B>>List. traverseEitherRight(F<A,Either<L,B>> f)
Traverse this list with the given function and collect the output on the right side of an either.<L,B>
Either<L,Option<B>>Option. traverseEitherRight(F<A,Either<L,B>> f)
Traverse this option with the given function and collect the output on the right side of an either.<L,B>
Either<L,Seq<B>>Seq. traverseEitherRight(F<A,Either<L,B>> f)
Traverse this seq with the given function and collect the output on the right side of an either.<L,B>
Either<L,Stream<B>>Stream. traverseEitherRight(F<A,Either<L,B>> f)
Traverse this stream with the given function and collect the output on the right side of an either.<L,C>
Either<L,Validation<E,C>>Validation. traverseEitherRight(F<T,Either<L,C>> f)
Traverse this validation with the given function and collect the output on the right side of an either.Constructors in fj.data with parameters of type Either Constructor Description LeftProjection(Either<A,B> e)
RightProjection(Either<A,B> e)
Validation(Either<E,T> e)
-
Uses of Either in fj.data.hamt
Fields in fj.data.hamt declared as Either Modifier and Type Field Description private Either<P2<K,V>,HashArrayMappedTrie<K,V>>
Node. either
Constructors in fj.data.hamt with parameters of type Either Constructor Description Node(Either<P2<K,V>,HashArrayMappedTrie<K,V>> e)
-
Uses of Either in fj.data.optic
Methods in fj.data.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 aPOptional
or modify the source in case there is no targetabstract Either<T,A>
PPrism. getOrModify(S s)
get the target of aPPrism
or modify the source in case there is no targetEither<S,A>
Prism. getOrModify(S s)
Methods in fj.data.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> F<S,Either<L,S>>
Lens. modifyEitherF(F<A,Either<L,A>> f)
<L> F<S,Either<L,S>>
Optional. modifyEitherF(F<A,Either<L,A>> f)
<L> F<S,Either<L,T>>
PIso. modifyEitherF(F<A,Either<L,B>> f)
modify polymorphically the target of aPIso
with an Applicative functionabstract <L> F<S,Either<L,T>>
PLens. modifyEitherF(F<A,Either<L,B>> f)
modify polymorphically the target of aPLens
with an Applicative functionabstract <L> F<S,Either<L,T>>
POptional. modifyEitherF(F<A,Either<L,B>> f)
modify polymorphically the target of aPOptional
with an Applicative function<L> F<S,Either<L,T>>
PPrism. modifyEitherF(F<A,Either<L,B>> f)
modify polymorphically the target of aPPrism
with an Applicative functionabstract <L> F<S,Either<L,T>>
PTraversal. modifyEitherF(F<A,Either<L,B>> f)
modify polymorphically the target of aPTraversal
with an Applicative function<L> F<S,Either<L,S>>
Traversal. modifyEitherF(F<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 twoFold
with the same target<S1> Getter<Either<S,S1>,A>
Getter. sum(Getter<S1,A> other)
join twoGetter
with the same target<S1> Lens<Either<S,S1>,A>
Lens. sum(Lens<S1,A> other)
join twoLens
with the same target<S1> Optional<Either<S,S1>,A>
Optional. sum(Optional<S1,A> other)
join twoOptional
with the same target<S1,T1>
PLens<Either<S,S1>,Either<T,T1>,A,B>PLens. sum(PLens<S1,T1,A,B> other)
join twoPLens
with the same target<S1,T1>
PLens<Either<S,S1>,Either<T,T1>,A,B>PLens. sum(PLens<S1,T1,A,B> other)
join twoPLens
with the same target<S1,T1>
POptional<Either<S,S1>,Either<T,T1>,A,B>POptional. sum(POptional<S1,T1,A,B> other)
join twoPOptional
with the same target<S1,T1>
POptional<Either<S,S1>,Either<T,T1>,A,B>POptional. sum(POptional<S1,T1,A,B> other)
join twoPOptional
with the same target<S1,T1>
PSetter<Either<S,S1>,Either<T,T1>,A,B>PSetter. sum(PSetter<S1,T1,A,B> other)
join twoPSetter
with the same target<S1,T1>
PSetter<Either<S,S1>,Either<T,T1>,A,B>PSetter. sum(PSetter<S1,T1,A,B> other)
join twoPSetter
with the same target<S1,T1>
PTraversal<Either<S,S1>,Either<T,T1>,A,B>PTraversal. sum(PTraversal<S1,T1,A,B> other)
join twoPTraversal
with the same target<S1,T1>
PTraversal<Either<S,S1>,Either<T,T1>,A,B>PTraversal. sum(PTraversal<S1,T1,A,B> other)
join twoPTraversal
with the same target<S1> Setter<Either<S,S1>,A>
Setter. sum(Setter<S1,A> other)
join twoSetter
with the same target<S1> Traversal<Either<S,S1>,A>
Traversal. sum(Traversal<S1,A> other)
join twoTraversal
with the same targetMethod parameters in fj.data.optic with type arguments of type Either Modifier and Type Method Description <L> F<S,Either<L,S>>
Lens. modifyEitherF(F<A,Either<L,A>> f)
<L> F<S,Either<L,S>>
Optional. modifyEitherF(F<A,Either<L,A>> f)
<L> F<S,Either<L,T>>
PIso. modifyEitherF(F<A,Either<L,B>> f)
modify polymorphically the target of aPIso
with an Applicative functionabstract <L> F<S,Either<L,T>>
PLens. modifyEitherF(F<A,Either<L,B>> f)
modify polymorphically the target of aPLens
with an Applicative functionabstract <L> F<S,Either<L,T>>
POptional. modifyEitherF(F<A,Either<L,B>> f)
modify polymorphically the target of aPOptional
with an Applicative function<L> F<S,Either<L,T>>
PPrism. modifyEitherF(F<A,Either<L,B>> f)
modify polymorphically the target of aPPrism
with an Applicative functionabstract <L> F<S,Either<L,T>>
PTraversal. modifyEitherF(F<A,Either<L,B>> f)
modify polymorphically the target of aPTraversal
with an Applicative function<L> F<S,Either<L,S>>
Traversal. modifyEitherF(F<A,Either<L,A>> f)
static <S,T,A,B>
POptional<S,T,A,B>POptional. pOptional(F<S,Either<T,A>> getOrModify, F<B,F<S,T>> set)
create aPOptional
using the canonical functions: getOrModify and setstatic <S,T,A,B>
PPrism<S,T,A,B>PPrism. pPrism(F<S,Either<T,A>> getOrModify, F<B,T> reverseGet)
create aPPrism
using the canonical functions: getOrModify and reverseGet
-