Package io.vavr
Class API.ForLazy5Either<L,T1,T2,T3,T4,T5>
java.lang.Object
io.vavr.API.ForLazy5Either<L,T1,T2,T3,T4,T5>
- 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 Either
- Enclosing class:
API
A lazily evaluated
For-comprehension with 5 Eithers.
Constructed via For(...) and evaluated by calling yield(...).
Construction is side-effect free; underlying Eithers are traversed
only when yield(...) is invoked.
-
Field Summary
FieldsModifier and TypeFieldDescription -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
ts1
-
ts2
-
ts3
-
ts4
-
ts5
-
-
Constructor Details
-
ForLazy5Either
-
-
Method Details
-
yield
public <R> Either<L,R> yield(@NonNull Function5<? super T1, ? super T2, ? super T3, ? super T4, ? super T5, ? 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:
NullPointerException- iffisnull
-