Class API.ForLazy6Try<T1,T2,T3,T4,T5,T6>
java.lang.Object
io.vavr.API.ForLazy6Try<T1,T2,T3,T4,T5,T6>
- Type Parameters:
T1- the component type of the 1st TryT2- the component type of the 2nd TryT3- the component type of the 3rd TryT4- the component type of the 4th TryT5- the component type of the 5th TryT6- the component type of the 6th Try
- Enclosing class:
API
A lazily evaluated
For-comprehension with 6 Trys.
Constructed via For(...) and evaluated by calling yield(...).
Construction is side-effect free; underlying Trys are traversed
only when yield(...) is invoked.
-
Field Summary
FieldsModifier and TypeFieldDescription -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateForLazy6Try(Try<T1> ts1, Function1<? super T1, Try<T2>> ts2, Function2<? super T1, ? super T2, Try<T3>> ts3, Function3<? super T1, ? super T2, ? super T3, Try<T4>> ts4, Function4<? super T1, ? super T2, ? super T3, ? super T4, Try<T5>> ts5, Function5<? super T1, ? super T2, ? super T3, ? super T4, ? super T5, Try<T6>> ts6) -
Method Summary
-
Field Details
-
ts1
-
ts2
-
ts3
-
ts4
-
ts5
-
ts6
-
-
Constructor Details
-
ForLazy6Try
private ForLazy6Try(Try<T1> ts1, Function1<? super T1, Try<T2>> ts2, Function2<? super T1, ? super T2, Try<T3>> ts3, Function3<? super T1, ? super T2, ? super T3, Try<T4>> ts4, Function4<? super T1, ? super T2, ? super T3, ? super T4, Try<T5>> ts5, Function5<? super T1, ? super T2, ? super T3, ? super T4, ? super T5, Try<T6>> ts6)
-
-
Method Details
-
yield
public <R> Try<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 Trys by composing
flatMapandmapchains.- Type Parameters:
R- the element type of the resultingTry- Parameters:
f- a function mapping a tuple of bound values to a result- Returns:
- an
Trycontaining mapped results - Throws:
NullPointerException- iffisnull
-