Package io.vavr
Class API.ForLazy7Validation<L,T1,T2,T3,T4,T5,T6,T7>
- java.lang.Object
-
- io.vavr.API.ForLazy7Validation<L,T1,T2,T3,T4,T5,T6,T7>
-
- Type Parameters:
L- the common left-hand type of all ValidationsT1- the component type of the 1st ValidationT2- the component type of the 2nd ValidationT3- the component type of the 3rd ValidationT4- the component type of the 4th ValidationT5- the component type of the 5th ValidationT6- the component type of the 6th ValidationT7- the component type of the 7th Validation
- Enclosing class:
- API
public static class API.ForLazy7Validation<L,T1,T2,T3,T4,T5,T6,T7> extends java.lang.ObjectA lazily evaluatedFor-comprehension with 7 Validations.Constructed via
For(...)and evaluated by callingyield(...). Construction is side-effect free; underlying Validations are traversed only whenyield(...)is invoked.
-
-
Field Summary
Fields Modifier and Type Field Description private Validation<L,T1>ts1private Function1<? super T1,Validation<L,T2>>ts2private Function2<? super T1,? super T2,Validation<L,T3>>ts3private Function3<? super T1,? super T2,? super T3,Validation<L,T4>>ts4private Function4<? super T1,? super T2,? super T3,? super T4,Validation<L,T5>>ts5private Function5<? super T1,? super T2,? super T3,? super T4,? super T5,Validation<L,T6>>ts6private Function6<? super T1,? super T2,? super T3,? super T4,? super T5,? super T6,Validation<L,T7>>ts7
-
Constructor Summary
Constructors Modifier Constructor Description privateForLazy7Validation(Validation<L,T1> ts1, Function1<? super T1,Validation<L,T2>> ts2, Function2<? super T1,? super T2,Validation<L,T3>> ts3, Function3<? super T1,? super T2,? super T3,Validation<L,T4>> ts4, Function4<? super T1,? super T2,? super T3,? super T4,Validation<L,T5>> ts5, Function5<? super T1,? super T2,? super T3,? super T4,? super T5,Validation<L,T6>> ts6, Function6<? super T1,? super T2,? super T3,? super T4,? super T5,? super T6,Validation<L,T7>> ts7)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <R> Validation<L,R>yield(@NonNull Function7<? super T1,? super T2,? super T3,? super T4,? super T5,? super T6,? super T7,? extends R> f)Produces results by mapping the Cartesian product of all bound values.
-
-
-
Constructor Detail
-
ForLazy7Validation
private ForLazy7Validation(Validation<L,T1> ts1, Function1<? super T1,Validation<L,T2>> ts2, Function2<? super T1,? super T2,Validation<L,T3>> ts3, Function3<? super T1,? super T2,? super T3,Validation<L,T4>> ts4, Function4<? super T1,? super T2,? super T3,? super T4,Validation<L,T5>> ts5, Function5<? super T1,? super T2,? super T3,? super T4,? super T5,Validation<L,T6>> ts6, Function6<? super T1,? super T2,? super T3,? super T4,? super T5,? super T6,Validation<L,T7>> ts7)
-
-
Method Detail
-
yield
public <R> Validation<L,R> yield(@NonNull Function7<? super T1,? super T2,? super T3,? super T4,? super T5,? super T6,? super T7,? extends R> f)
Produces results by mapping the Cartesian product of all bound values.Evaluation is lazy and delegated to the underlying Validations by composing
flatMapandmapchains.- Type Parameters:
R- the element type of the resultingValidation- Parameters:
f- a function mapping a tuple of bound values to a result- Returns:
- an
Validationcontaining mapped results - Throws:
java.lang.NullPointerException- iffisnull
-
-