LT1
- First type (Left type)LT2
- Second typeLT3
- Third TypeLT4
- Fourth TypeRT
- Right type (operations are performed on this type if present)public interface Either5<LT1,LT2,LT3,LT4,RT> extends com.aol.cyclops.types.Functor<RT>, com.aol.cyclops.types.Filterable<RT>, com.aol.cyclops.types.BiFunctor<LT4,RT>, com.aol.cyclops.types.To<Either5<LT1,LT2,LT3,LT4,RT>>, com.aol.cyclops.types.MonadicValue<RT>, java.util.function.Supplier<RT>, com.aol.cyclops.types.applicative.ApplicativeFunctor<RT>
Modifier and Type | Interface and Description |
---|---|
static class |
Either5.Lazy<ST,M,M2,M3,PT> |
static class |
Either5.Left1<ST,M,M2,M3,PT> |
static class |
Either5.Left2<ST,M,M2,M3,PT> |
static class |
Either5.Left3<ST,M,M2,M3,PT> |
static class |
Either5.Left4<ST,M,M2,M3,PT> |
static class |
Either5.Right<ST,M,M2,M3,PT> |
com.aol.cyclops.types.applicative.ApplicativeFunctor.Applicatives, com.aol.cyclops.types.applicative.ApplicativeFunctor.ApplyFunctions<T>
Modifier and Type | Method and Description |
---|---|
static <LT1,LT2,LT3,LT4,RT> |
accumulate(com.aol.cyclops.Monoid<RT> reducer,
com.aol.cyclops.data.collections.extensions.CollectionX<Either5<LT1,LT2,LT3,LT4,RT>> xors)
Accumulate the results only from those Either3 which have a Right type present, using the supplied Monoid (a combining BiFunction/BinaryOperator and identity element that takes two
input values of the same type and returns the combined result)
Monoids . |
static <LT1,LT2,LT3,LT4,T> |
anyM(Either5<LT1,LT2,LT3,LT4,T> xor)
Create an AnyMValue instance that wraps an Either4
|
static <ST,LT2,LT3,LT4,T> |
anyMList(java.lang.Iterable<Either5<ST,LT2,LT3,LT4,T>> anyM)
Take an iterable containing Either3s and convert them into a List of AnyMs
e.g.
|
static <X,LT1 extends X,LT2 extends X,LT3 extends X,LT4 extends X,RT extends X,R> |
applyAny(Either5<LT1,LT2,LT3,LT4,RT> either) |
default <U1,U2> Either5<LT1,LT2,LT3,U1,U2> |
bicast(java.lang.Class<U1> type1,
java.lang.Class<U2> type2) |
<R1,R2> Either5<LT1,LT2,LT3,R1,R2> |
bimap(java.util.function.Function<? super LT4,? extends R1> fn1,
java.util.function.Function<? super RT,? extends R2> fn2) |
default Either5<LT1,LT2,LT3,LT4,RT> |
bipeek(java.util.function.Consumer<? super LT4> c1,
java.util.function.Consumer<? super RT> c2) |
default <R1,R2> Either5<LT1,LT2,LT3,R1,R2> |
bitrampoline(java.util.function.Function<? super LT4,? extends com.aol.cyclops.control.Trampoline<? extends R1>> mapper1,
java.util.function.Function<? super RT,? extends com.aol.cyclops.control.Trampoline<? extends R2>> mapper2) |
default <U> Either5<LT1,LT2,LT3,LT4,U> |
cast(java.lang.Class<? extends U> type) |
default <R> Either5<LT1,LT2,LT3,LT4,R> |
coflatMap(java.util.function.Function<? super com.aol.cyclops.types.MonadicValue<RT>,R> mapper) |
default Either5<LT1,LT2,LT3,LT4,RT> |
combine(java.util.function.BinaryOperator<com.aol.cyclops.types.Combiner<RT>> combiner,
com.aol.cyclops.types.Combiner<RT> app) |
default <T2,R> Either5<LT1,LT2,LT3,LT4,R> |
combine(com.aol.cyclops.types.Value<? extends T2> app,
java.util.function.BiFunction<? super RT,? super T2,? extends R> fn) |
default Either5<LT1,LT2,LT3,LT4,RT> |
combineEager(com.aol.cyclops.Monoid<RT> monoid,
com.aol.cyclops.types.MonadicValue<? extends RT> v2) |
static <X,LT1 extends X,LT2 extends X,LT3 extends X,LT4 extends X,RT extends X> |
consumeAny(Either5<LT1,LT2,LT3,LT4,RT> either)
Static method useful as a method reference for fluent consumption of any value type stored in this Either
(will capture the lowest common type)
|
com.aol.cyclops.control.Maybe<RT> |
filter(java.util.function.Predicate<? super RT> test)
Filter this Either4 resulting in a Maybe#none if it is not a Right instance or if the predicate does not
hold.
|
default com.aol.cyclops.control.Maybe<RT> |
filterNot(java.util.function.Predicate<? super RT> predicate) |
<RT1> Either5<LT1,LT2,LT3,LT4,RT1> |
flatMap(java.util.function.Function<? super RT,? extends com.aol.cyclops.types.MonadicValue<? extends RT1>> mapper)
Flattening transformation on this Either4.
|
default <RT1> Either5<LT1,LT2,LT3,LT4,RT1> |
flatMapIterable(java.util.function.Function<? super RT,? extends java.lang.Iterable<? extends RT1>> mapper) |
default <RT1> Either5<LT1,LT2,LT3,LT4,RT1> |
flatMapPublisher(java.util.function.Function<? super RT,? extends org.reactivestreams.Publisher<? extends RT1>> mapper) |
static <LT,M1,B,T4,RT> |
foEval(com.aol.cyclops.control.Eval<B> middle)
Construct a Either4#Third from an Eval
|
default <R1,R> Either5<LT1,LT2,LT3,LT4,R> |
forEach2(java.util.function.Function<? super RT,? extends com.aol.cyclops.types.MonadicValue<R1>> value1,
java.util.function.BiFunction<? super RT,? super R1,? extends R> yieldingFunction) |
default <R1,R> Either5<LT1,LT2,LT3,LT4,R> |
forEach2(java.util.function.Function<? super RT,? extends com.aol.cyclops.types.MonadicValue<R1>> value1,
java.util.function.BiFunction<? super RT,? super R1,java.lang.Boolean> filterFunction,
java.util.function.BiFunction<? super RT,? super R1,? extends R> yieldingFunction) |
default <T2,R1,R2,R> |
forEach3(java.util.function.Function<? super RT,? extends com.aol.cyclops.types.MonadicValue<R1>> value1,
java.util.function.BiFunction<? super RT,? super R1,? extends com.aol.cyclops.types.MonadicValue<R2>> value2,
com.aol.cyclops.util.function.TriFunction<? super RT,? super R1,? super R2,? extends R> yieldingFunction) |
default <T2,R1,R2,R> |
forEach3(java.util.function.Function<? super RT,? extends com.aol.cyclops.types.MonadicValue<R1>> value1,
java.util.function.BiFunction<? super RT,? super R1,? extends com.aol.cyclops.types.MonadicValue<R2>> value2,
com.aol.cyclops.util.function.TriFunction<? super RT,? super R1,? super R2,java.lang.Boolean> filterFunction,
com.aol.cyclops.util.function.TriFunction<? super RT,? super R1,? super R2,? extends R> yieldingFunction) |
default <T2,R1,R2,R3,R> |
forEach4(java.util.function.Function<? super RT,? extends com.aol.cyclops.types.MonadicValue<R1>> value1,
java.util.function.BiFunction<? super RT,? super R1,? extends com.aol.cyclops.types.MonadicValue<R2>> value2,
com.aol.cyclops.util.function.TriFunction<? super RT,? super R1,? super R2,? extends com.aol.cyclops.types.MonadicValue<R3>> value3,
com.aol.cyclops.util.function.QuadFunction<? super RT,? super R1,? super R2,? super R3,? extends R> yieldingFunction) |
default <T2,R1,R2,R3,R> |
forEach4(java.util.function.Function<? super RT,? extends com.aol.cyclops.types.MonadicValue<R1>> value1,
java.util.function.BiFunction<? super RT,? super R1,? extends com.aol.cyclops.types.MonadicValue<R2>> value2,
com.aol.cyclops.util.function.TriFunction<? super RT,? super R1,? super R2,? extends com.aol.cyclops.types.MonadicValue<R3>> value3,
com.aol.cyclops.util.function.QuadFunction<? super RT,? super R1,? super R2,? super R3,java.lang.Boolean> filterFunction,
com.aol.cyclops.util.function.QuadFunction<? super RT,? super R1,? super R2,? super R3,? extends R> yieldingFunction) |
static <ST,T,T2,T3,RT> |
fromIterable(java.lang.Iterable<RT> iterable)
Construct a Right Either4 from the supplied Iterable
|
static <LT1,LT2,LT3,LT4,RT> |
fromMonadicValue(com.aol.cyclops.types.MonadicValue<RT> mv5) |
static <T1,T2,T3,T> |
fromPublisher(org.reactivestreams.Publisher<T> pub)
Lazily construct a Right Either from the supplied publisher
|
boolean |
isLeft1() |
boolean |
isLeft2() |
boolean |
isLeft3() |
boolean |
isLeft4() |
boolean |
isRight() |
static <LT,M1,B,T4,RT> |
left1(LT left)
Construct a Either4#Left1
|
static <LT,M1,B,T4,RT> |
left1Eval(com.aol.cyclops.control.Eval<LT> left)
Construct a Either4#Left1 from an Eval
|
static <LT,M1,B,T4,RT> |
left2(M1 middle)
Construct a Either4#Second
|
static <LT,M1,B,T4,RT> |
left2Eval(com.aol.cyclops.control.Eval<M1> middle)
Construct a Either4#Second from an Eval
|
static <LT,M1,B,T4,RT> |
left3(B middle)
Construct a Either4#Third
|
static <LT,M1,B,T4,RT> |
left3Eval(com.aol.cyclops.control.Eval<B> middle)
Construct a Either4#Third from an Eval
|
static <LT,M1,B,T4,RT> |
left4(T4 middle)
Construct a Either4#Third
|
static <LT,M1,B,T4,RT> |
left4Eval(com.aol.cyclops.control.Eval<T4> middle)
Construct a Either4#Third from an Eval
|
<R> Either5<LT1,LT2,LT3,LT4,R> |
map(java.util.function.Function<? super RT,? extends R> fn) |
default Either5<LT1,LT2,LT3,LT4,com.aol.cyclops.types.MonadicValue<RT>> |
nest() |
default com.aol.cyclops.control.Maybe<RT> |
notNull() |
default <U> com.aol.cyclops.control.Maybe<U> |
ofType(java.lang.Class<? extends U> type) |
default <R> Either5<LT1,LT2,LT3,LT4,R> |
patternMatch(java.util.function.Function<com.aol.cyclops.control.Matchable.CheckValue1<RT,R>,com.aol.cyclops.control.Matchable.CheckValue1<RT,R>> case1,
java.util.function.Supplier<? extends R> otherwise) |
default Either5<LT1,LT2,LT3,LT4,RT> |
peek(java.util.function.Consumer<? super RT> c) |
static <LT,M1,B,T4,RT> |
right(RT right)
Construct a Either4#Right
|
static <LT,M1,B,T4,RT> |
rightEval(com.aol.cyclops.control.Eval<RT> right)
Construct a Either4#Right from an Eval
|
static <LT1,LT2,LT3,LT4,PT> |
sequence(com.aol.cyclops.data.collections.extensions.CollectionX<Either5<LT1,LT2,LT3,LT4,PT>> xors)
Turn a collection of Either3 into a single Either with Lists of values.
|
Either5<RT,LT2,LT3,LT4,LT1> |
swap1() |
Either5<LT1,RT,LT3,LT4,LT2> |
swap2() |
Either5<LT1,LT2,RT,LT4,LT3> |
swap3() |
Either5<LT1,LT2,LT3,RT,LT4> |
swap4() |
default com.aol.cyclops.control.Ior<LT1,RT> |
toIor()
Return an Ior that can be this object or a Ior.primary or Ior.secondary
|
default com.aol.cyclops.control.Xor<LT1,RT> |
toXor() |
default <R> Either5<LT1,LT2,LT3,LT4,R> |
trampoline(java.util.function.Function<? super RT,? extends com.aol.cyclops.control.Trampoline<? extends R>> mapper) |
static <LT1,LT2,LT3,LT4,PT,R> |
traverse(com.aol.cyclops.data.collections.extensions.CollectionX<Either5<LT1,LT2,LT3,LT4,PT>> xors,
java.util.function.Function<? super PT,? extends R> fn)
Traverse a Collection of Either3 producing an Either4 with a ListX, applying the transformation function to every
element in the list
|
<T> Either5<LT1,LT2,LT3,LT4,T> |
unit(T unit) |
<R> R |
visit(java.util.function.Function<? super LT1,? extends R> left1,
java.util.function.Function<? super LT2,? extends R> left2,
java.util.function.Function<? super LT3,? extends R> left3,
java.util.function.Function<? super LT4,? extends R> left4,
java.util.function.Function<? super RT,? extends R> right)
Visit the types in this Either4, only one user supplied function is executed depending on the type
|
static <X,LT1 extends X,LT2 extends X,LT3 extends X,LT4 extends X,RT extends X> |
visitAny(java.util.function.Consumer<? super X> c,
Either5<LT1,LT2,LT3,LT4,RT> either) |
static <X,LT1 extends X,LT2 extends X,LT3 extends X,LT4 extends X,RT extends X,R> |
visitAny(Either5<LT1,LT2,LT3,LT4,RT> either,
java.util.function.Function<? super X,? extends R> fn) |
default <T2,R> Either5<LT1,LT2,LT3,LT4,R> |
zip(java.util.function.BiFunction<? super RT,? super T2,? extends R> fn,
org.reactivestreams.Publisher<? extends T2> app) |
default <T2,R> Either5<LT1,LT2,LT3,LT4,R> |
zip(java.lang.Iterable<? extends T2> app,
java.util.function.BiFunction<? super RT,? super T2,? extends R> fn) |
default <U> Either5<LT1,LT2,LT3,LT4,org.jooq.lambda.tuple.Tuple2<RT,U>> |
zip(java.lang.Iterable<? extends U> other) |
default <U> Either5<LT1,LT2,LT3,LT4,org.jooq.lambda.tuple.Tuple2<RT,U>> |
zip(org.jooq.lambda.Seq<? extends U> other) |
default <U,R> Either5<LT1,LT2,LT3,LT4,R> |
zip(org.jooq.lambda.Seq<? extends U> other,
java.util.function.BiFunction<? super RT,? super U,? extends R> zipper) |
default <U> Either5<LT1,LT2,LT3,LT4,org.jooq.lambda.tuple.Tuple2<RT,U>> |
zip(java.util.stream.Stream<? extends U> other) |
default <U,R> Either5<LT1,LT2,LT3,LT4,R> |
zip(java.util.stream.Stream<? extends U> other,
java.util.function.BiFunction<? super RT,? super U,? extends R> zipper) |
applyFunctions
collect, fold, fold, generate, iterate, iterator, mapReduce, mkString, newSubscriber, of, stream, subscribe, test, toDequeX, toEvalAlways, toEvalLater, toEvalNow, toFeatureToggle, toFutureStream, toFutureStream, toLazyImmutable, toList, toListX, toMaybe, toMutable, toPBagX, toPOrderedSetX, toPQueueX, toPSetX, toPStackX, toPVectorX, toQueueX, toSetX, toSimpleReact, toSimpleReact, toSortedSetX, toTry, toTry, toTry, toXor, unapply
endsWith, endsWithIterable, findAny, findFirst, firstValue, foldable, foldRight, foldRight, foldRight, foldRightMapToType, get, groupBy, join, join, join, mapReduce, print, print, printErr, printOut, reduce, reduce, reduce, reduce, reduce, reduce, reduce, schedule, scheduleFixedDelay, scheduleFixedRate, single, single, singleOptional, startsWith, startsWithIterable, toConcurrentLazyCollection, toConcurrentLazyStreamable, toLazyCollection, validate, xMatch
collect, fromSupplier, get, isPresent, orElse, orElseGet, orElseThrow, toAtomicReference, toCompletableFuture, toCompletableFutureAsync, toCompletableFutureAsync, toFutureW, toFutureWAsync, toFutureWAsync, toOptional, toOptionalAtomicReference, toStream, visit
static <X,LT1 extends X,LT2 extends X,LT3 extends X,LT4 extends X,RT extends X> java.util.function.Consumer<java.util.function.Consumer<? super X>> consumeAny(Either5<LT1,LT2,LT3,LT4,RT> either)
myEither.to(Either5::consumeAny)
.accept(System.out::println);
either
- Either to consume value forstatic <X,LT1 extends X,LT2 extends X,LT3 extends X,LT4 extends X,RT extends X,R> java.util.function.Function<java.util.function.Function<? super X,R>,R> applyAny(Either5<LT1,LT2,LT3,LT4,RT> either)
static <X,LT1 extends X,LT2 extends X,LT3 extends X,LT4 extends X,RT extends X,R> R visitAny(Either5<LT1,LT2,LT3,LT4,RT> either, java.util.function.Function<? super X,? extends R> fn)
static <X,LT1 extends X,LT2 extends X,LT3 extends X,LT4 extends X,RT extends X> X visitAny(java.util.function.Consumer<? super X> c, Either5<LT1,LT2,LT3,LT4,RT> either)
static <LT1,LT2,LT3,LT4,RT> Either5<LT1,LT2,LT3,LT4,RT> fromMonadicValue(com.aol.cyclops.types.MonadicValue<RT> mv5)
static <LT1,LT2,LT3,LT4,T> com.aol.cyclops.types.anyM.AnyMValue<T> anyM(Either5<LT1,LT2,LT3,LT4,T> xor)
xor
- Either4 to wrap inside an AnyMstatic <ST,LT2,LT3,LT4,T> com.aol.cyclops.data.collections.extensions.standard.ListX<com.aol.cyclops.types.anyM.AnyMValue<T>> anyMList(java.lang.Iterable<Either5<ST,LT2,LT3,LT4,T>> anyM)
List<AnyM<Integer>> anyMs = anyMList(Arrays.asList(Either4.right(1),Either4.left(10));
//List[AnyM[Either4:right[1],Either4:left[10]]]
anyM
- Iterable containing Eithersstatic <LT1,LT2,LT3,LT4,PT> Either5<com.aol.cyclops.data.collections.extensions.standard.ListX<LT1>,com.aol.cyclops.data.collections.extensions.standard.ListX<LT2>,com.aol.cyclops.data.collections.extensions.standard.ListX<LT3>,com.aol.cyclops.data.collections.extensions.standard.ListX<LT4>,com.aol.cyclops.data.collections.extensions.standard.ListX<PT>> sequence(com.aol.cyclops.data.collections.extensions.CollectionX<Either5<LT1,LT2,LT3,LT4,PT>> xors)
Either4<String,String,String,Integer> just = Either4.right(10);
Either4<String,String,String,Integer> none = Either4.left("none");
Either4<ListX<String>,ListX<String>,ListX<String>,ListX<Integer>> xors =Either4.sequence(ListX.of(just,none,Either4.right(1)));
//Eitehr.right(ListX.of(10,1)));
Either3
- Either3 to sequencestatic <LT1,LT2,LT3,LT4,PT,R> Either5<com.aol.cyclops.data.collections.extensions.standard.ListX<LT1>,com.aol.cyclops.data.collections.extensions.standard.ListX<LT2>,com.aol.cyclops.data.collections.extensions.standard.ListX<LT3>,com.aol.cyclops.data.collections.extensions.standard.ListX<LT4>,com.aol.cyclops.data.collections.extensions.standard.ListX<R>> traverse(com.aol.cyclops.data.collections.extensions.CollectionX<Either5<LT1,LT2,LT3,LT4,PT>> xors, java.util.function.Function<? super PT,? extends R> fn)
xors
- Either4s to sequence and transformfn
- Transformation functionstatic <LT1,LT2,LT3,LT4,RT> Either5<com.aol.cyclops.data.collections.extensions.standard.ListX<LT1>,com.aol.cyclops.data.collections.extensions.standard.ListX<LT2>,com.aol.cyclops.data.collections.extensions.standard.ListX<LT3>,com.aol.cyclops.data.collections.extensions.standard.ListX<LT4>,RT> accumulate(com.aol.cyclops.Monoid<RT> reducer, com.aol.cyclops.data.collections.extensions.CollectionX<Either5<LT1,LT2,LT3,LT4,RT>> xors)
Monoids
.
Either4<String,String,String,Integer> just = Either4.right(10);
Either4<String,String,String,Integer> none = Either4.left("none");
Either4<ListX<String>,ListX<String>,Integer> xors = Either4.accumulatePrimary(Monoids.intSum,ListX.of(just,none,Either4.right(1)));
//Either4.right(11);
xors
- Collection of Eithers to accumulate primary valuesreducer
- Reducer to accumulate resultsstatic <T1,T2,T3,T> Either5<java.lang.Throwable,T1,T2,T3,T> fromPublisher(org.reactivestreams.Publisher<T> pub)
ReactiveSeq<Integer> stream = ReactiveSeq.of(1,2,3);
Either5<Throwable,String,String,String,Integer> either = Either5.fromPublisher(stream);
//Either[1]
pub
- Publisher to construct an Either fromstatic <ST,T,T2,T3,RT> Either5<ST,T,T2,T3,RT> fromIterable(java.lang.Iterable<RT> iterable)
List<Integer> list = Arrays.asList(1,2,3);
Either4<Throwable,String,Integer> future = Either4.fromIterable(list);
//Either4[1]
iterable
- Iterable to construct an Either fromstatic <LT,M1,B,T4,RT> Either5<LT,M1,B,T4,RT> rightEval(com.aol.cyclops.control.Eval<RT> right)
right
- Eval to construct Either4#Right fromstatic <LT,M1,B,T4,RT> Either5<LT,M1,B,T4,RT> left1Eval(com.aol.cyclops.control.Eval<LT> left)
left
- Eval to construct Either4#Left1 fromstatic <LT,M1,B,T4,RT> Either5<LT,M1,B,T4,RT> right(RT right)
right
- Value to storestatic <LT,M1,B,T4,RT> Either5<LT,M1,B,T4,RT> left1(LT left)
left
- Value to storestatic <LT,M1,B,T4,RT> Either5<LT,M1,B,T4,RT> left2(M1 middle)
middle
- Value to storestatic <LT,M1,B,T4,RT> Either5<LT,M1,B,T4,RT> left3(B middle)
middle
- Value to storestatic <LT,M1,B,T4,RT> Either5<LT,M1,B,T4,RT> left4(T4 middle)
middle
- Value to storestatic <LT,M1,B,T4,RT> Either5<LT,M1,B,T4,RT> left2Eval(com.aol.cyclops.control.Eval<M1> middle)
second
- Eval to construct Either4#middle fromstatic <LT,M1,B,T4,RT> Either5<LT,M1,B,T4,RT> left3Eval(com.aol.cyclops.control.Eval<B> middle)
third
- Eval to construct Either4#middle fromstatic <LT,M1,B,T4,RT> Either5<LT,M1,B,T4,RT> left4Eval(com.aol.cyclops.control.Eval<T4> middle)
third
- Eval to construct Either4#middle fromstatic <LT,M1,B,T4,RT> Either5<LT,M1,B,T4,RT> foEval(com.aol.cyclops.control.Eval<B> middle)
third
- Eval to construct Either4#middle fromdefault <RT1> Either5<LT1,LT2,LT3,LT4,RT1> flatMapIterable(java.util.function.Function<? super RT,? extends java.lang.Iterable<? extends RT1>> mapper)
flatMapIterable
in interface com.aol.cyclops.types.MonadicValue<RT>
default <RT1> Either5<LT1,LT2,LT3,LT4,RT1> flatMapPublisher(java.util.function.Function<? super RT,? extends org.reactivestreams.Publisher<? extends RT1>> mapper)
flatMapPublisher
in interface com.aol.cyclops.types.MonadicValue<RT>
<R> R visit(java.util.function.Function<? super LT1,? extends R> left1, java.util.function.Function<? super LT2,? extends R> left2, java.util.function.Function<? super LT3,? extends R> left3, java.util.function.Function<? super LT4,? extends R> left4, java.util.function.Function<? super RT,? extends R> right)
left1
- Function to execute if this Either4 is a Left1 instanceleft2
- Function to execute if this Either4 is a Left2 instanceleft3
- Function to execute if this Either4 is a Left3 instanceright
- Function to execute if this Either4 is a right instancecom.aol.cyclops.control.Maybe<RT> filter(java.util.function.Predicate<? super RT> test)
filter
in interface com.aol.cyclops.types.Filterable<RT>
filter
in interface com.aol.cyclops.types.MonadicValue<RT>
test
- Predicate to apply to filter this Either4<RT1> Either5<LT1,LT2,LT3,LT4,RT1> flatMap(java.util.function.Function<? super RT,? extends com.aol.cyclops.types.MonadicValue<? extends RT1>> mapper)
flatMap
in interface com.aol.cyclops.types.MonadicValue<RT>
mapper
- Mapping functionboolean isRight()
boolean isLeft1()
boolean isLeft2()
boolean isLeft3()
boolean isLeft4()
default <U> com.aol.cyclops.control.Maybe<U> ofType(java.lang.Class<? extends U> type)
ofType
in interface com.aol.cyclops.types.Filterable<RT>
default com.aol.cyclops.control.Maybe<RT> filterNot(java.util.function.Predicate<? super RT> predicate)
filterNot
in interface com.aol.cyclops.types.Filterable<RT>
default com.aol.cyclops.control.Maybe<RT> notNull()
notNull
in interface com.aol.cyclops.types.Filterable<RT>
<R1,R2> Either5<LT1,LT2,LT3,R1,R2> bimap(java.util.function.Function<? super LT4,? extends R1> fn1, java.util.function.Function<? super RT,? extends R2> fn2)
default com.aol.cyclops.control.Ior<LT1,RT> toIor()
toIor
in interface com.aol.cyclops.types.Value<RT>
default com.aol.cyclops.control.Xor<LT1,RT> toXor()
toXor
in interface com.aol.cyclops.types.Value<RT>
default <R> Either5<LT1,LT2,LT3,LT4,R> coflatMap(java.util.function.Function<? super com.aol.cyclops.types.MonadicValue<RT>,R> mapper)
coflatMap
in interface com.aol.cyclops.types.MonadicValue<RT>
default Either5<LT1,LT2,LT3,LT4,com.aol.cyclops.types.MonadicValue<RT>> nest()
nest
in interface com.aol.cyclops.types.MonadicValue<RT>
default <T2,R1,R2,R3,R> Either5<LT1,LT2,LT3,LT4,R> forEach4(java.util.function.Function<? super RT,? extends com.aol.cyclops.types.MonadicValue<R1>> value1, java.util.function.BiFunction<? super RT,? super R1,? extends com.aol.cyclops.types.MonadicValue<R2>> value2, com.aol.cyclops.util.function.TriFunction<? super RT,? super R1,? super R2,? extends com.aol.cyclops.types.MonadicValue<R3>> value3, com.aol.cyclops.util.function.QuadFunction<? super RT,? super R1,? super R2,? super R3,? extends R> yieldingFunction)
forEach4
in interface com.aol.cyclops.types.MonadicValue<RT>
default <T2,R1,R2,R3,R> Either5<LT1,LT2,LT3,LT4,R> forEach4(java.util.function.Function<? super RT,? extends com.aol.cyclops.types.MonadicValue<R1>> value1, java.util.function.BiFunction<? super RT,? super R1,? extends com.aol.cyclops.types.MonadicValue<R2>> value2, com.aol.cyclops.util.function.TriFunction<? super RT,? super R1,? super R2,? extends com.aol.cyclops.types.MonadicValue<R3>> value3, com.aol.cyclops.util.function.QuadFunction<? super RT,? super R1,? super R2,? super R3,java.lang.Boolean> filterFunction, com.aol.cyclops.util.function.QuadFunction<? super RT,? super R1,? super R2,? super R3,? extends R> yieldingFunction)
forEach4
in interface com.aol.cyclops.types.MonadicValue<RT>
default <T2,R1,R2,R> Either5<LT1,LT2,LT3,LT4,R> forEach3(java.util.function.Function<? super RT,? extends com.aol.cyclops.types.MonadicValue<R1>> value1, java.util.function.BiFunction<? super RT,? super R1,? extends com.aol.cyclops.types.MonadicValue<R2>> value2, com.aol.cyclops.util.function.TriFunction<? super RT,? super R1,? super R2,? extends R> yieldingFunction)
forEach3
in interface com.aol.cyclops.types.MonadicValue<RT>
default <T2,R1,R2,R> Either5<LT1,LT2,LT3,LT4,R> forEach3(java.util.function.Function<? super RT,? extends com.aol.cyclops.types.MonadicValue<R1>> value1, java.util.function.BiFunction<? super RT,? super R1,? extends com.aol.cyclops.types.MonadicValue<R2>> value2, com.aol.cyclops.util.function.TriFunction<? super RT,? super R1,? super R2,java.lang.Boolean> filterFunction, com.aol.cyclops.util.function.TriFunction<? super RT,? super R1,? super R2,? extends R> yieldingFunction)
forEach3
in interface com.aol.cyclops.types.MonadicValue<RT>
default <R1,R> Either5<LT1,LT2,LT3,LT4,R> forEach2(java.util.function.Function<? super RT,? extends com.aol.cyclops.types.MonadicValue<R1>> value1, java.util.function.BiFunction<? super RT,? super R1,? extends R> yieldingFunction)
forEach2
in interface com.aol.cyclops.types.MonadicValue<RT>
default <R1,R> Either5<LT1,LT2,LT3,LT4,R> forEach2(java.util.function.Function<? super RT,? extends com.aol.cyclops.types.MonadicValue<R1>> value1, java.util.function.BiFunction<? super RT,? super R1,java.lang.Boolean> filterFunction, java.util.function.BiFunction<? super RT,? super R1,? extends R> yieldingFunction)
forEach2
in interface com.aol.cyclops.types.MonadicValue<RT>
default Either5<LT1,LT2,LT3,LT4,RT> combineEager(com.aol.cyclops.Monoid<RT> monoid, com.aol.cyclops.types.MonadicValue<? extends RT> v2)
combineEager
in interface com.aol.cyclops.types.MonadicValue<RT>
default <T2,R> Either5<LT1,LT2,LT3,LT4,R> combine(com.aol.cyclops.types.Value<? extends T2> app, java.util.function.BiFunction<? super RT,? super T2,? extends R> fn)
combine
in interface com.aol.cyclops.types.Combiner<RT>
default Either5<LT1,LT2,LT3,LT4,RT> combine(java.util.function.BinaryOperator<com.aol.cyclops.types.Combiner<RT>> combiner, com.aol.cyclops.types.Combiner<RT> app)
combine
in interface com.aol.cyclops.types.Combiner<RT>
default <U,R> Either5<LT1,LT2,LT3,LT4,R> zip(org.jooq.lambda.Seq<? extends U> other, java.util.function.BiFunction<? super RT,? super U,? extends R> zipper)
zip
in interface com.aol.cyclops.types.Zippable<RT>
default <U,R> Either5<LT1,LT2,LT3,LT4,R> zip(java.util.stream.Stream<? extends U> other, java.util.function.BiFunction<? super RT,? super U,? extends R> zipper)
zip
in interface com.aol.cyclops.types.Zippable<RT>
default <U> Either5<LT1,LT2,LT3,LT4,org.jooq.lambda.tuple.Tuple2<RT,U>> zip(java.util.stream.Stream<? extends U> other)
zip
in interface com.aol.cyclops.types.Zippable<RT>
default <U> Either5<LT1,LT2,LT3,LT4,org.jooq.lambda.tuple.Tuple2<RT,U>> zip(org.jooq.lambda.Seq<? extends U> other)
zip
in interface com.aol.cyclops.types.Zippable<RT>
default <U> Either5<LT1,LT2,LT3,LT4,org.jooq.lambda.tuple.Tuple2<RT,U>> zip(java.lang.Iterable<? extends U> other)
zip
in interface com.aol.cyclops.types.Zippable<RT>
default <T2,R> Either5<LT1,LT2,LT3,LT4,R> zip(java.lang.Iterable<? extends T2> app, java.util.function.BiFunction<? super RT,? super T2,? extends R> fn)
default <T2,R> Either5<LT1,LT2,LT3,LT4,R> zip(java.util.function.BiFunction<? super RT,? super T2,? extends R> fn, org.reactivestreams.Publisher<? extends T2> app)
default Either5<LT1,LT2,LT3,LT4,RT> bipeek(java.util.function.Consumer<? super LT4> c1, java.util.function.Consumer<? super RT> c2)
default <U1,U2> Either5<LT1,LT2,LT3,U1,U2> bicast(java.lang.Class<U1> type1, java.lang.Class<U2> type2)
default <R1,R2> Either5<LT1,LT2,LT3,R1,R2> bitrampoline(java.util.function.Function<? super LT4,? extends com.aol.cyclops.control.Trampoline<? extends R1>> mapper1, java.util.function.Function<? super RT,? extends com.aol.cyclops.control.Trampoline<? extends R2>> mapper2)
default <U> Either5<LT1,LT2,LT3,LT4,U> cast(java.lang.Class<? extends U> type)
cast
in interface com.aol.cyclops.types.Functor<RT>
default Either5<LT1,LT2,LT3,LT4,RT> peek(java.util.function.Consumer<? super RT> c)
peek
in interface com.aol.cyclops.types.Functor<RT>
default <R> Either5<LT1,LT2,LT3,LT4,R> trampoline(java.util.function.Function<? super RT,? extends com.aol.cyclops.control.Trampoline<? extends R>> mapper)
trampoline
in interface com.aol.cyclops.types.Functor<RT>
default <R> Either5<LT1,LT2,LT3,LT4,R> patternMatch(java.util.function.Function<com.aol.cyclops.control.Matchable.CheckValue1<RT,R>,com.aol.cyclops.control.Matchable.CheckValue1<RT,R>> case1, java.util.function.Supplier<? extends R> otherwise)
patternMatch
in interface com.aol.cyclops.types.Functor<RT>