Package io.vavr
Class API.ForLazy8Future<T1,T2,T3,T4,T5,T6,T7,T8>
- java.lang.Object
-
- io.vavr.API.ForLazy8Future<T1,T2,T3,T4,T5,T6,T7,T8>
-
- Type Parameters:
T1- the component type of the 1st FutureT2- the component type of the 2nd FutureT3- the component type of the 3rd FutureT4- the component type of the 4th FutureT5- the component type of the 5th FutureT6- the component type of the 6th FutureT7- the component type of the 7th FutureT8- the component type of the 8th Future
- Enclosing class:
- API
public static class API.ForLazy8Future<T1,T2,T3,T4,T5,T6,T7,T8> extends java.lang.ObjectA lazily evaluatedFor-comprehension with 8 Futures.Constructed via
For(...)and evaluated by callingyield(...). Construction is side-effect free; underlying Futures are traversed only whenyield(...)is invoked.
-
-
Field Summary
Fields Modifier and Type Field Description private Future<T1>ts1private Function1<? super T1,Future<T2>>ts2private Function2<? super T1,? super T2,Future<T3>>ts3private Function3<? super T1,? super T2,? super T3,Future<T4>>ts4private Function4<? super T1,? super T2,? super T3,? super T4,Future<T5>>ts5private Function5<? super T1,? super T2,? super T3,? super T4,? super T5,Future<T6>>ts6private Function6<? super T1,? super T2,? super T3,? super T4,? super T5,? super T6,Future<T7>>ts7private Function7<? super T1,? super T2,? super T3,? super T4,? super T5,? super T6,? super T7,Future<T8>>ts8
-
Constructor Summary
Constructors Modifier Constructor Description privateForLazy8Future(Future<T1> ts1, Function1<? super T1,Future<T2>> ts2, Function2<? super T1,? super T2,Future<T3>> ts3, Function3<? super T1,? super T2,? super T3,Future<T4>> ts4, Function4<? super T1,? super T2,? super T3,? super T4,Future<T5>> ts5, Function5<? super T1,? super T2,? super T3,? super T4,? super T5,Future<T6>> ts6, Function6<? super T1,? super T2,? super T3,? super T4,? super T5,? super T6,Future<T7>> ts7, Function7<? super T1,? super T2,? super T3,? super T4,? super T5,? super T6,? super T7,Future<T8>> ts8)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <R> Future<R>yield(@NonNull Function8<? super T1,? super T2,? super T3,? super T4,? super T5,? super T6,? super T7,? super T8,? extends R> f)Produces results by mapping the Cartesian product of all bound values.
-
-
-
Constructor Detail
-
ForLazy8Future
private ForLazy8Future(Future<T1> ts1, Function1<? super T1,Future<T2>> ts2, Function2<? super T1,? super T2,Future<T3>> ts3, Function3<? super T1,? super T2,? super T3,Future<T4>> ts4, Function4<? super T1,? super T2,? super T3,? super T4,Future<T5>> ts5, Function5<? super T1,? super T2,? super T3,? super T4,? super T5,Future<T6>> ts6, Function6<? super T1,? super T2,? super T3,? super T4,? super T5,? super T6,Future<T7>> ts7, Function7<? super T1,? super T2,? super T3,? super T4,? super T5,? super T6,? super T7,Future<T8>> ts8)
-
-
Method Detail
-
yield
public <R> Future<R> yield(@NonNull Function8<? super T1,? super T2,? super T3,? super T4,? super T5,? super T6,? super T7,? super T8,? extends R> f)
Produces results by mapping the Cartesian product of all bound values.Evaluation is lazy and delegated to the underlying Futures by composing
flatMapandmapchains.- Type Parameters:
R- the element type of the resultingFuture- Parameters:
f- a function mapping a tuple of bound values to a result- Returns:
- an
Futurecontaining mapped results - Throws:
java.lang.NullPointerException- iffisnull
-
-