Package io.vavr
Class API.ForLazy6Either<L,T1,T2,T3,T4,T5,T6>
- java.lang.Object
-
- io.vavr.API.ForLazy6Either<L,T1,T2,T3,T4,T5,T6>
-
- Type Parameters:
L- the common left-hand type of all EithersT1- the component type of the 1st EitherT2- the component type of the 2nd EitherT3- the component type of the 3rd EitherT4- the component type of the 4th EitherT5- the component type of the 5th EitherT6- the component type of the 6th Either
- Enclosing class:
- API
public static class API.ForLazy6Either<L,T1,T2,T3,T4,T5,T6> extends java.lang.ObjectA lazily evaluatedFor-comprehension with 6 Eithers.Constructed via
For(...)and evaluated by callingyield(...). Construction is side-effect free; underlying Eithers are traversed only whenyield(...)is invoked.
-
-
Field Summary
Fields Modifier and Type Field Description private Either<L,T1>ts1private Function1<? super T1,Either<L,T2>>ts2private Function2<? super T1,? super T2,Either<L,T3>>ts3private Function3<? super T1,? super T2,? super T3,Either<L,T4>>ts4private Function4<? super T1,? super T2,? super T3,? super T4,Either<L,T5>>ts5private Function5<? super T1,? super T2,? super T3,? super T4,? super T5,Either<L,T6>>ts6
-
Constructor Summary
Constructors Modifier Constructor Description privateForLazy6Either(Either<L,T1> ts1, Function1<? super T1,Either<L,T2>> ts2, Function2<? super T1,? super T2,Either<L,T3>> ts3, Function3<? super T1,? super T2,? super T3,Either<L,T4>> ts4, Function4<? super T1,? super T2,? super T3,? super T4,Either<L,T5>> ts5, Function5<? super T1,? super T2,? super T3,? super T4,? super T5,Either<L,T6>> ts6)
-
-
-
Constructor Detail
-
ForLazy6Either
private ForLazy6Either(Either<L,T1> ts1, Function1<? super T1,Either<L,T2>> ts2, Function2<? super T1,? super T2,Either<L,T3>> ts3, Function3<? super T1,? super T2,? super T3,Either<L,T4>> ts4, Function4<? super T1,? super T2,? super T3,? super T4,Either<L,T5>> ts5, Function5<? super T1,? super T2,? super T3,? super T4,? super T5,Either<L,T6>> ts6)
-
-
Method Detail
-
yield
public <R> Either<L,R> yield(@NonNull Function6<? super T1,? super T2,? super T3,? super T4,? super T5,? super T6,? extends R> f)
Produces results by mapping the Cartesian product of all bound values.Evaluation is lazy and delegated to the underlying Eithers by composing
flatMapandmapchains.- Type Parameters:
R- the element type of the resultingEither- Parameters:
f- a function mapping a tuple of bound values to a result- Returns:
- an
Eithercontaining mapped results - Throws:
java.lang.NullPointerException- iffisnull
-
-