Class API
import static io.vavr.API.*;
For-comprehension
The For-comprehension is syntactic sugar for nested for-loops. We write
// lazily evaluated
Iterator<R> result = For(iterable1, iterable2, ..., iterableN).yield(f);
or
Iterator<R> result =
For(iterable1, v1 ->
For(iterable2, v2 ->
...
For(iterableN).yield(vN -> f.apply(v1, v2, ..., vN))
)
);
instead of
for(T1 v1 : iterable1) {
for (T2 v2 : iterable2) {
...
for (TN vN : iterableN) {
R result = f.apply(v1, v2, ..., VN);
//
// We are forced to perform side effects to do s.th. meaningful with the result.
//
}
}
}
Please note that values like Option, Try, Future, etc. are also iterable.
Given a suitable function
f: (v1, v2, ..., vN) -> ... and 1 <= N <= 8 iterables, the result is a Stream of the
mapped cross product elements.
{ f(v1, v2, ..., vN) | v1 ∈ iterable1, ... vN ∈ iterableN }
As with all Vavr Values, the result of a For-comprehension can be converted
to standard Java library and Vavr types.- Author:
- Daniel Dietrich
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classFor-comprehension with one Iterable.static classFor-comprehension with one Either.static classFor-comprehension with one Future.static classFor-comprehension with one List.static classFor-comprehension with one Option.static classFor-comprehension with one Try.static classFor-comprehension with one Validation.static classFor-comprehension with two Iterables.static classFor-comprehension with two Eithers.static classFor-comprehension with two Futures.static classFor-comprehension with two Lists.static classFor-comprehension with two Options.static classFor-comprehension with two Trys.static classFor-comprehension with two Validations.static classFor-comprehension with three Iterables.static classFor-comprehension with three Eithers.static classFor-comprehension with three Futures.static classFor-comprehension with three Lists.static classFor-comprehension with three Options.static classFor-comprehension with three Trys.static classFor-comprehension with three Validations.static classFor-comprehension with 4 Iterables.static classFor-comprehension with 4 Eithers.static classFor-comprehension with 4 Futures.static classAPI.For4List<T1,T2, T3, T4> For-comprehension with 4 Lists.static classFor-comprehension with 4 Options.static classAPI.For4Try<T1,T2, T3, T4> For-comprehension with 4 Trys.static classFor-comprehension with 4 Validations.static classFor-comprehension with 5 Iterables.static classFor-comprehension with 5 Eithers.static classFor-comprehension with 5 Futures.static classFor-comprehension with 5 Lists.static classFor-comprehension with 5 Options.static classFor-comprehension with 5 Trys.static classFor-comprehension with 5 Validations.static classFor-comprehension with 6 Iterables.static classFor-comprehension with 6 Eithers.static classFor-comprehension with 6 Futures.static classFor-comprehension with 6 Lists.static classFor-comprehension with 6 Options.static classFor-comprehension with 6 Trys.static classFor-comprehension with 6 Validations.static classFor-comprehension with 7 Iterables.static classFor-comprehension with 7 Eithers.static classFor-comprehension with 7 Futures.static classFor-comprehension with 7 Lists.static classFor-comprehension with 7 Options.static classFor-comprehension with 7 Trys.static classFor-comprehension with 7 Validations.static classFor-comprehension with 8 Iterables.static classFor-comprehension with 8 Eithers.static classFor-comprehension with 8 Futures.static classFor-comprehension with 8 Lists.static classFor-comprehension with 8 Options.static classFor-comprehension with 8 Trys.static classFor-comprehension with 8 Validations.static classA lazily evaluatedFor-comprehension with two Eithers.static classA lazily evaluatedFor-comprehension with two Futures.static classA lazily evaluatedFor-comprehension with two Lists.static classA lazily evaluatedFor-comprehension with two Options.static classA lazily evaluatedFor-comprehension with two Trys.static classA lazily evaluatedFor-comprehension with two Validations.static classA lazily evaluatedFor-comprehension with three Eithers.static classA lazily evaluatedFor-comprehension with three Futures.static classA lazily evaluatedFor-comprehension with three Lists.static classA lazily evaluatedFor-comprehension with three Options.static classA lazily evaluatedFor-comprehension with three Trys.static classA lazily evaluatedFor-comprehension with three Validations.static classA lazily evaluatedFor-comprehension with 4 Eithers.static classA lazily evaluatedFor-comprehension with 4 Futures.static classA lazily evaluatedFor-comprehension with 4 Lists.static classA lazily evaluatedFor-comprehension with 4 Options.static classA lazily evaluatedFor-comprehension with 4 Trys.static classA lazily evaluatedFor-comprehension with 4 Validations.static classA lazily evaluatedFor-comprehension with 5 Eithers.static classA lazily evaluatedFor-comprehension with 5 Futures.static classA lazily evaluatedFor-comprehension with 5 Lists.static classA lazily evaluatedFor-comprehension with 5 Options.static classA lazily evaluatedFor-comprehension with 5 Trys.static classA lazily evaluatedFor-comprehension with 5 Validations.static classA lazily evaluatedFor-comprehension with 6 Eithers.static classA lazily evaluatedFor-comprehension with 6 Futures.static classA lazily evaluatedFor-comprehension with 6 Lists.static classA lazily evaluatedFor-comprehension with 6 Options.static classA lazily evaluatedFor-comprehension with 6 Trys.static classA lazily evaluatedFor-comprehension with 6 Validations.static classA lazily evaluatedFor-comprehension with 7 Eithers.static classA lazily evaluatedFor-comprehension with 7 Futures.static classA lazily evaluatedFor-comprehension with 7 Lists.static classA lazily evaluatedFor-comprehension with 7 Options.static classA lazily evaluatedFor-comprehension with 7 Trys.static classA lazily evaluatedFor-comprehension with 7 Validations.static classA lazily evaluatedFor-comprehension with 8 Eithers.static classA lazily evaluatedFor-comprehension with 8 Futures.static classA lazily evaluatedFor-comprehension with 8 Lists.static classA lazily evaluatedFor-comprehension with 8 Options.static classA lazily evaluatedFor-comprehension with 8 Trys.static classA lazily evaluatedFor-comprehension with 8 Validations.static final classScala-like structural pattern matching for Java. -
Method Summary
Modifier and TypeMethodDescriptionstatic <T> API.Match.Pattern0<T> $()Wildcard pattern, matches any value.static <T> API.Match.Pattern0<T> Guard pattern, checks if a predicate is satisfied.static <T> API.Match.Pattern0<T> $(T prototype) Value pattern, checks for equality.static <T> Array<T> Array()Alias forArray.empty()static <T> Array<T> Array(T element) Alias forArray.of(Object)static <T> Array<T> Array(T @NonNull ... elements) Alias forArray.of(Object...)static <T,R> API.Match.Case <T, R> Case(@NonNull API.Match.Pattern0<T> pattern, @NonNull Function<? super T, ? extends R> f) static <T,R> API.Match.Case <T, R> Case(@NonNull API.Match.Pattern0<T> pattern, @NonNull Supplier<? extends R> supplier) static <T,R> API.Match.Case <T, R> Case(@NonNull API.Match.Pattern0<T> pattern, R retVal) Returns aAPI.Match.Case0instance for a specificAPI.Match.Pattern0and a constant valuestatic <T,T1, R> API.Match.Case <T, R> Case(@NonNull API.Match.Pattern1<T, T1> pattern, @NonNull Function<? super T1, ? extends R> f) static <T,T1, R> API.Match.Case <T, R> Case(@NonNull API.Match.Pattern1<T, T1> pattern, @NonNull Supplier<? extends R> supplier) static <T,T1, R> API.Match.Case <T, R> Case(@NonNull API.Match.Pattern1<T, T1> pattern, R retVal) Returns aAPI.Match.Case1instance for a specificAPI.Match.Pattern1and a constant valuestatic <T,T1, T2, R>
API.Match.Case<T, R> Case(@NonNull API.Match.Pattern2<T, T1, T2> pattern, @NonNull BiFunction<? super T1, ? super T2, ? extends R> f) static <T,T1, T2, R>
API.Match.Case<T, R> Case(@NonNull API.Match.Pattern2<T, T1, T2> pattern, @NonNull Supplier<? extends R> supplier) static <T,T1, T2, R>
API.Match.Case<T, R> Case(@NonNull API.Match.Pattern2<T, T1, T2> pattern, R retVal) Returns aAPI.Match.Case2instance for a specificAPI.Match.Pattern2and a constant valuestatic <T,T1, T2, T3, R>
API.Match.Case<T, R> Case(@NonNull API.Match.Pattern3<T, T1, T2, T3> pattern, @NonNull Function3<? super T1, ? super T2, ? super T3, ? extends R> f) static <T,T1, T2, T3, R>
API.Match.Case<T, R> Case(@NonNull API.Match.Pattern3<T, T1, T2, T3> pattern, @NonNull Supplier<? extends R> supplier) static <T,T1, T2, T3, R>
API.Match.Case<T, R> Case(@NonNull API.Match.Pattern3<T, T1, T2, T3> pattern, R retVal) Returns aAPI.Match.Case3instance for a specificAPI.Match.Pattern3and a constant valuestatic <T,T1, T2, T3, T4, R>
API.Match.Case<T, R> Case(@NonNull API.Match.Pattern4<T, T1, T2, T3, T4> pattern, @NonNull Function4<? super T1, ? super T2, ? super T3, ? super T4, ? extends R> f) static <T,T1, T2, T3, T4, R>
API.Match.Case<T, R> Case(@NonNull API.Match.Pattern4<T, T1, T2, T3, T4> pattern, @NonNull Supplier<? extends R> supplier) static <T,T1, T2, T3, T4, R>
API.Match.Case<T, R> Case(@NonNull API.Match.Pattern4<T, T1, T2, T3, T4> pattern, R retVal) Returns aAPI.Match.Case4instance for a specificAPI.Match.Pattern4and a constant valuestatic <T,T1, T2, T3, T4, T5, R>
API.Match.Case<T, R> Case(@NonNull API.Match.Pattern5<T, T1, T2, T3, T4, T5> pattern, @NonNull Function5<? super T1, ? super T2, ? super T3, ? super T4, ? super T5, ? extends R> f) static <T,T1, T2, T3, T4, T5, R>
API.Match.Case<T, R> Case(@NonNull API.Match.Pattern5<T, T1, T2, T3, T4, T5> pattern, @NonNull Supplier<? extends R> supplier) static <T,T1, T2, T3, T4, T5, R>
API.Match.Case<T, R> Case(@NonNull API.Match.Pattern5<T, T1, T2, T3, T4, T5> pattern, R retVal) Returns aAPI.Match.Case5instance for a specificAPI.Match.Pattern5and a constant valuestatic <T,T1, T2, T3, T4, T5, T6, R>
API.Match.Case<T, R> Case(@NonNull API.Match.Pattern6<T, T1, T2, T3, T4, T5, T6> pattern, @NonNull Function6<? super T1, ? super T2, ? super T3, ? super T4, ? super T5, ? super T6, ? extends R> f) static <T,T1, T2, T3, T4, T5, T6, R>
API.Match.Case<T, R> Case(@NonNull API.Match.Pattern6<T, T1, T2, T3, T4, T5, T6> pattern, @NonNull Supplier<? extends R> supplier) static <T,T1, T2, T3, T4, T5, T6, R>
API.Match.Case<T, R> Case(@NonNull API.Match.Pattern6<T, T1, T2, T3, T4, T5, T6> pattern, R retVal) Returns aAPI.Match.Case6instance for a specificAPI.Match.Pattern6and a constant valuestatic <T,T1, T2, T3, T4, T5, T6, T7, R>
API.Match.Case<T, R> Case(@NonNull API.Match.Pattern7<T, T1, T2, T3, T4, T5, T6, T7> pattern, @NonNull Function7<? super T1, ? super T2, ? super T3, ? super T4, ? super T5, ? super T6, ? super T7, ? extends R> f) static <T,T1, T2, T3, T4, T5, T6, T7, R>
API.Match.Case<T, R> Case(@NonNull API.Match.Pattern7<T, T1, T2, T3, T4, T5, T6, T7> pattern, @NonNull Supplier<? extends R> supplier) static <T,T1, T2, T3, T4, T5, T6, T7, R>
API.Match.Case<T, R> Case(@NonNull API.Match.Pattern7<T, T1, T2, T3, T4, T5, T6, T7> pattern, R retVal) Returns aAPI.Match.Case7instance for a specificAPI.Match.Pattern7and a constant valuestatic <T,T1, T2, T3, T4, T5, T6, T7, T8, R>
API.Match.Case<T, R> Case(@NonNull API.Match.Pattern8<T, T1, T2, T3, T4, T5, T6, T7, T8> pattern, @NonNull Function8<? super T1, ? super T2, ? super T3, ? super T4, ? super T5, ? super T6, ? super T7, ? super T8, ? extends R> f) static <T,T1, T2, T3, T4, T5, T6, T7, T8, R>
API.Match.Case<T, R> Case(@NonNull API.Match.Pattern8<T, T1, T2, T3, T4, T5, T6, T7, T8> pattern, @NonNull Supplier<? extends R> supplier) static <T,T1, T2, T3, T4, T5, T6, T7, T8, R>
API.Match.Case<T, R> Case(@NonNull API.Match.Pattern8<T, T1, T2, T3, T4, T5, T6, T7, T8> pattern, R retVal) Returns aAPI.Match.Case8instance for a specificAPI.Match.Pattern8and a constant valuestatic CharSeqCharSeq(char character) Alias forCharSeq.of(char)static CharSeqCharSeq(char... characters) Alias forCharSeq.of(char...)static CharSeqCharSeq(CharSequence sequence) Alias forCharSeq.of(CharSequence)static <R> CheckedFunction0<R> CheckedFunction(CheckedFunction0<R> methodReference) Alias forCheckedFunction0.of(CheckedFunction0)static <T1,R> CheckedFunction1 <T1, R> CheckedFunction(CheckedFunction1<T1, R> methodReference) Alias forCheckedFunction1.of(CheckedFunction1)static <T1,T2, R>
CheckedFunction2<T1, T2, R> CheckedFunction(CheckedFunction2<T1, T2, R> methodReference) Alias forCheckedFunction2.of(CheckedFunction2)static <T1,T2, T3, R>
CheckedFunction3<T1, T2, T3, R> CheckedFunction(CheckedFunction3<T1, T2, T3, R> methodReference) Alias forCheckedFunction3.of(CheckedFunction3)static <T1,T2, T3, T4, R>
CheckedFunction4<T1, T2, T3, T4, R> CheckedFunction(CheckedFunction4<T1, T2, T3, T4, R> methodReference) Alias forCheckedFunction4.of(CheckedFunction4)static <T1,T2, T3, T4, T5, R>
CheckedFunction5<T1, T2, T3, T4, T5, R> CheckedFunction(CheckedFunction5<T1, T2, T3, T4, T5, R> methodReference) Alias forCheckedFunction5.of(CheckedFunction5)static <T1,T2, T3, T4, T5, T6, R>
CheckedFunction6<T1, T2, T3, T4, T5, T6, R> CheckedFunction(CheckedFunction6<T1, T2, T3, T4, T5, T6, R> methodReference) Alias forCheckedFunction6.of(CheckedFunction6)static <T1,T2, T3, T4, T5, T6, T7, R>
CheckedFunction7<T1, T2, T3, T4, T5, T6, T7, R> CheckedFunction(CheckedFunction7<T1, T2, T3, T4, T5, T6, T7, R> methodReference) Alias forCheckedFunction7.of(CheckedFunction7)static <T1,T2, T3, T4, T5, T6, T7, T8, R>
CheckedFunction8<T1, T2, T3, T4, T5, T6, T7, T8, R> CheckedFunction(CheckedFunction8<T1, T2, T3, T4, T5, T6, T7, T8, R> methodReference) Alias forCheckedFunction8.of(CheckedFunction8)static <T> Try.Failure<T> Alias forTry.failure(Throwable)static <T1> API.For1List<T1> Creates aFor-comprehension of one List.static <T1,T2> API.ForLazy2List <T1, T2> Creates a lazyFor-comprehension over two Lists.static <T1,T2, T3>
API.ForLazy3List<T1, T2, T3> For(@NonNull List<T1> ts1, @NonNull Function1<? super T1, List<T2>> ts2, @NonNull Function2<? super T1, ? super T2, List<T3>> ts3) Creates a lazyFor-comprehension over three Lists.static <T1,T2, T3, T4>
API.ForLazy4List<T1, T2, T3, T4> For(@NonNull List<T1> ts1, @NonNull Function1<? super T1, List<T2>> ts2, @NonNull Function2<? super T1, ? super T2, List<T3>> ts3, @NonNull Function3<? super T1, ? super T2, ? super T3, List<T4>> ts4) Creates a lazyFor-comprehension over 4 Lists.static <T1,T2, T3, T4, T5>
API.ForLazy5List<T1, T2, T3, T4, T5> For(@NonNull List<T1> ts1, @NonNull Function1<? super T1, List<T2>> ts2, @NonNull Function2<? super T1, ? super T2, List<T3>> ts3, @NonNull Function3<? super T1, ? super T2, ? super T3, List<T4>> ts4, @NonNull Function4<? super T1, ? super T2, ? super T3, ? super T4, List<T5>> ts5) Creates a lazyFor-comprehension over 5 Lists.static <T1,T2, T3, T4, T5, T6>
API.ForLazy6List<T1, T2, T3, T4, T5, T6> For(@NonNull List<T1> ts1, @NonNull Function1<? super T1, List<T2>> ts2, @NonNull Function2<? super T1, ? super T2, List<T3>> ts3, @NonNull Function3<? super T1, ? super T2, ? super T3, List<T4>> ts4, @NonNull Function4<? super T1, ? super T2, ? super T3, ? super T4, List<T5>> ts5, @NonNull Function5<? super T1, ? super T2, ? super T3, ? super T4, ? super T5, List<T6>> ts6) Creates a lazyFor-comprehension over 6 Lists.static <T1,T2, T3, T4, T5, T6, T7>
API.ForLazy7List<T1, T2, T3, T4, T5, T6, T7> For(@NonNull List<T1> ts1, @NonNull Function1<? super T1, List<T2>> ts2, @NonNull Function2<? super T1, ? super T2, List<T3>> ts3, @NonNull Function3<? super T1, ? super T2, ? super T3, List<T4>> ts4, @NonNull Function4<? super T1, ? super T2, ? super T3, ? super T4, List<T5>> ts5, @NonNull Function5<? super T1, ? super T2, ? super T3, ? super T4, ? super T5, List<T6>> ts6, @NonNull Function6<? super T1, ? super T2, ? super T3, ? super T4, ? super T5, ? super T6, List<T7>> ts7) Creates a lazyFor-comprehension over 7 Lists.static <T1,T2, T3, T4, T5, T6, T7, T8>
API.ForLazy8List<T1, T2, T3, T4, T5, T6, T7, T8> For(@NonNull List<T1> ts1, @NonNull Function1<? super T1, List<T2>> ts2, @NonNull Function2<? super T1, ? super T2, List<T3>> ts3, @NonNull Function3<? super T1, ? super T2, ? super T3, List<T4>> ts4, @NonNull Function4<? super T1, ? super T2, ? super T3, ? super T4, List<T5>> ts5, @NonNull Function5<? super T1, ? super T2, ? super T3, ? super T4, ? super T5, List<T6>> ts6, @NonNull Function6<? super T1, ? super T2, ? super T3, ? super T4, ? super T5, ? super T6, List<T7>> ts7, @NonNull Function7<? super T1, ? super T2, ? super T3, ? super T4, ? super T5, ? super T6, ? super T7, List<T8>> ts8) Creates a lazyFor-comprehension over 8 Lists.static <T1,T2> API.For2List <T1, T2> Creates aFor-comprehension of two Lists.static <T1,T2, T3>
API.For3List<T1, T2, T3> Creates aFor-comprehension of three Lists.static <T1,T2, T3, T4>
API.For4List<T1, T2, T3, T4> Creates aFor-comprehension of 4 Lists.static <T1,T2, T3, T4, T5>
API.For5List<T1, T2, T3, T4, T5> For(@NonNull List<T1> ts1, @NonNull List<T2> ts2, @NonNull List<T3> ts3, @NonNull List<T4> ts4, @NonNull List<T5> ts5) Creates aFor-comprehension of 5 Lists.static <T1,T2, T3, T4, T5, T6>
API.For6List<T1, T2, T3, T4, T5, T6> For(@NonNull List<T1> ts1, @NonNull List<T2> ts2, @NonNull List<T3> ts3, @NonNull List<T4> ts4, @NonNull List<T5> ts5, @NonNull List<T6> ts6) Creates aFor-comprehension of 6 Lists.static <T1,T2, T3, T4, T5, T6, T7>
API.For7List<T1, T2, T3, T4, T5, T6, T7> For(@NonNull List<T1> ts1, @NonNull List<T2> ts2, @NonNull List<T3> ts3, @NonNull List<T4> ts4, @NonNull List<T5> ts5, @NonNull List<T6> ts6, @NonNull List<T7> ts7) Creates aFor-comprehension of 7 Lists.static <T1,T2, T3, T4, T5, T6, T7, T8>
API.For8List<T1, T2, T3, T4, T5, T6, T7, T8> For(@NonNull List<T1> ts1, @NonNull List<T2> ts2, @NonNull List<T3> ts3, @NonNull List<T4> ts4, @NonNull List<T5> ts5, @NonNull List<T6> ts6, @NonNull List<T7> ts7, @NonNull List<T8> ts8) Creates aFor-comprehension of 8 Lists.static <T1> API.For1Future<T1> Creates aFor-comprehension of one Future.static <T1,T2> API.ForLazy2Future <T1, T2> Creates a lazyFor-comprehension over two Futures.static <T1,T2, T3>
API.ForLazy3Future<T1, T2, T3> For(@NonNull Future<T1> ts1, @NonNull Function1<? super T1, Future<T2>> ts2, @NonNull Function2<? super T1, ? super T2, Future<T3>> ts3) Creates a lazyFor-comprehension over three Futures.static <T1,T2, T3, T4>
API.ForLazy4Future<T1, T2, T3, T4> For(@NonNull Future<T1> ts1, @NonNull Function1<? super T1, Future<T2>> ts2, @NonNull Function2<? super T1, ? super T2, Future<T3>> ts3, @NonNull Function3<? super T1, ? super T2, ? super T3, Future<T4>> ts4) Creates a lazyFor-comprehension over 4 Futures.static <T1,T2, T3, T4, T5>
API.ForLazy5Future<T1, T2, T3, T4, T5> For(@NonNull Future<T1> ts1, @NonNull Function1<? super T1, Future<T2>> ts2, @NonNull Function2<? super T1, ? super T2, Future<T3>> ts3, @NonNull Function3<? super T1, ? super T2, ? super T3, Future<T4>> ts4, @NonNull Function4<? super T1, ? super T2, ? super T3, ? super T4, Future<T5>> ts5) Creates a lazyFor-comprehension over 5 Futures.static <T1,T2, T3, T4, T5, T6>
API.ForLazy6Future<T1, T2, T3, T4, T5, T6> For(@NonNull Future<T1> ts1, @NonNull Function1<? super T1, Future<T2>> ts2, @NonNull Function2<? super T1, ? super T2, Future<T3>> ts3, @NonNull Function3<? super T1, ? super T2, ? super T3, Future<T4>> ts4, @NonNull Function4<? super T1, ? super T2, ? super T3, ? super T4, Future<T5>> ts5, @NonNull Function5<? super T1, ? super T2, ? super T3, ? super T4, ? super T5, Future<T6>> ts6) Creates a lazyFor-comprehension over 6 Futures.static <T1,T2, T3, T4, T5, T6, T7>
API.ForLazy7Future<T1, T2, T3, T4, T5, T6, T7> For(@NonNull Future<T1> ts1, @NonNull Function1<? super T1, Future<T2>> ts2, @NonNull Function2<? super T1, ? super T2, Future<T3>> ts3, @NonNull Function3<? super T1, ? super T2, ? super T3, Future<T4>> ts4, @NonNull Function4<? super T1, ? super T2, ? super T3, ? super T4, Future<T5>> ts5, @NonNull Function5<? super T1, ? super T2, ? super T3, ? super T4, ? super T5, Future<T6>> ts6, @NonNull Function6<? super T1, ? super T2, ? super T3, ? super T4, ? super T5, ? super T6, Future<T7>> ts7) Creates a lazyFor-comprehension over 7 Futures.static <T1,T2, T3, T4, T5, T6, T7, T8>
API.ForLazy8Future<T1, T2, T3, T4, T5, T6, T7, T8> For(@NonNull Future<T1> ts1, @NonNull Function1<? super T1, Future<T2>> ts2, @NonNull Function2<? super T1, ? super T2, Future<T3>> ts3, @NonNull Function3<? super T1, ? super T2, ? super T3, Future<T4>> ts4, @NonNull Function4<? super T1, ? super T2, ? super T3, ? super T4, Future<T5>> ts5, @NonNull Function5<? super T1, ? super T2, ? super T3, ? super T4, ? super T5, Future<T6>> ts6, @NonNull Function6<? super T1, ? super T2, ? super T3, ? super T4, ? super T5, ? super T6, Future<T7>> ts7, @NonNull Function7<? super T1, ? super T2, ? super T3, ? super T4, ? super T5, ? super T6, ? super T7, Future<T8>> ts8) Creates a lazyFor-comprehension over 8 Futures.static <T1,T2> API.For2Future <T1, T2> Creates aFor-comprehension of two Futures.static <T1,T2, T3>
API.For3Future<T1, T2, T3> Creates aFor-comprehension of three Futures.static <T1,T2, T3, T4>
API.For4Future<T1, T2, T3, T4> For(@NonNull Future<T1> ts1, @NonNull Future<T2> ts2, @NonNull Future<T3> ts3, @NonNull Future<T4> ts4) Creates aFor-comprehension of 4 Futures.static <T1,T2, T3, T4, T5>
API.For5Future<T1, T2, T3, T4, T5> For(@NonNull Future<T1> ts1, @NonNull Future<T2> ts2, @NonNull Future<T3> ts3, @NonNull Future<T4> ts4, @NonNull Future<T5> ts5) Creates aFor-comprehension of 5 Futures.static <T1,T2, T3, T4, T5, T6>
API.For6Future<T1, T2, T3, T4, T5, T6> For(@NonNull Future<T1> ts1, @NonNull Future<T2> ts2, @NonNull Future<T3> ts3, @NonNull Future<T4> ts4, @NonNull Future<T5> ts5, @NonNull Future<T6> ts6) Creates aFor-comprehension of 6 Futures.static <T1,T2, T3, T4, T5, T6, T7>
API.For7Future<T1, T2, T3, T4, T5, T6, T7> For(@NonNull Future<T1> ts1, @NonNull Future<T2> ts2, @NonNull Future<T3> ts3, @NonNull Future<T4> ts4, @NonNull Future<T5> ts5, @NonNull Future<T6> ts6, @NonNull Future<T7> ts7) Creates aFor-comprehension of 7 Futures.static <T1,T2, T3, T4, T5, T6, T7, T8>
API.For8Future<T1, T2, T3, T4, T5, T6, T7, T8> For(@NonNull Future<T1> ts1, @NonNull Future<T2> ts2, @NonNull Future<T3> ts3, @NonNull Future<T4> ts4, @NonNull Future<T5> ts5, @NonNull Future<T6> ts6, @NonNull Future<T7> ts7, @NonNull Future<T8> ts8) Creates aFor-comprehension of 8 Futures.static <L,T1> API.For1Either <L, T1> Creates aFor-comprehension of one Either.static <L,T1, T2>
API.ForLazy2Either<L, T1, T2> Creates a lazyFor-comprehension over two Eithers.static <L,T1, T2, T3>
API.ForLazy3Either<L, T1, T2, T3> For(@NonNull Either<L, T1> ts1, @NonNull Function1<? super T1, Either<L, T2>> ts2, @NonNull Function2<? super T1, ? super T2, Either<L, T3>> ts3) Creates a lazyFor-comprehension over three Eithers.static <L,T1, T2, T3, T4>
API.ForLazy4Either<L, T1, T2, T3, T4> For(@NonNull Either<L, T1> ts1, @NonNull Function1<? super T1, Either<L, T2>> ts2, @NonNull Function2<? super T1, ? super T2, Either<L, T3>> ts3, @NonNull Function3<? super T1, ? super T2, ? super T3, Either<L, T4>> ts4) Creates a lazyFor-comprehension over 4 Eithers.static <L,T1, T2, T3, T4, T5>
API.ForLazy5Either<L, T1, T2, T3, T4, T5> For(@NonNull Either<L, T1> ts1, @NonNull Function1<? super T1, Either<L, T2>> ts2, @NonNull Function2<? super T1, ? super T2, Either<L, T3>> ts3, @NonNull Function3<? super T1, ? super T2, ? super T3, Either<L, T4>> ts4, @NonNull Function4<? super T1, ? super T2, ? super T3, ? super T4, Either<L, T5>> ts5) Creates a lazyFor-comprehension over 5 Eithers.static <L,T1, T2, T3, T4, T5, T6>
API.ForLazy6Either<L, T1, T2, T3, T4, T5, T6> For(@NonNull Either<L, T1> ts1, @NonNull Function1<? super T1, Either<L, T2>> ts2, @NonNull Function2<? super T1, ? super T2, Either<L, T3>> ts3, @NonNull Function3<? super T1, ? super T2, ? super T3, Either<L, T4>> ts4, @NonNull Function4<? super T1, ? super T2, ? super T3, ? super T4, Either<L, T5>> ts5, @NonNull Function5<? super T1, ? super T2, ? super T3, ? super T4, ? super T5, Either<L, T6>> ts6) Creates a lazyFor-comprehension over 6 Eithers.static <L,T1, T2, T3, T4, T5, T6, T7>
API.ForLazy7Either<L, T1, T2, T3, T4, T5, T6, T7> For(@NonNull Either<L, T1> ts1, @NonNull Function1<? super T1, Either<L, T2>> ts2, @NonNull Function2<? super T1, ? super T2, Either<L, T3>> ts3, @NonNull Function3<? super T1, ? super T2, ? super T3, Either<L, T4>> ts4, @NonNull Function4<? super T1, ? super T2, ? super T3, ? super T4, Either<L, T5>> ts5, @NonNull Function5<? super T1, ? super T2, ? super T3, ? super T4, ? super T5, Either<L, T6>> ts6, @NonNull Function6<? super T1, ? super T2, ? super T3, ? super T4, ? super T5, ? super T6, Either<L, T7>> ts7) Creates a lazyFor-comprehension over 7 Eithers.static <L,T1, T2, T3, T4, T5, T6, T7, T8>
API.ForLazy8Either<L, T1, T2, T3, T4, T5, T6, T7, T8> For(@NonNull Either<L, T1> ts1, @NonNull Function1<? super T1, Either<L, T2>> ts2, @NonNull Function2<? super T1, ? super T2, Either<L, T3>> ts3, @NonNull Function3<? super T1, ? super T2, ? super T3, Either<L, T4>> ts4, @NonNull Function4<? super T1, ? super T2, ? super T3, ? super T4, Either<L, T5>> ts5, @NonNull Function5<? super T1, ? super T2, ? super T3, ? super T4, ? super T5, Either<L, T6>> ts6, @NonNull Function6<? super T1, ? super T2, ? super T3, ? super T4, ? super T5, ? super T6, Either<L, T7>> ts7, @NonNull Function7<? super T1, ? super T2, ? super T3, ? super T4, ? super T5, ? super T6, ? super T7, Either<L, T8>> ts8) Creates a lazyFor-comprehension over 8 Eithers.static <L,T1, T2>
API.For2Either<L, T1, T2> Creates aFor-comprehension of two Eithers.static <L,T1, T2, T3>
API.For3Either<L, T1, T2, T3> Creates aFor-comprehension of three Eithers.static <L,T1, T2, T3, T4>
API.For4Either<L, T1, T2, T3, T4> For(@NonNull Either<L, T1> ts1, @NonNull Either<L, T2> ts2, @NonNull Either<L, T3> ts3, @NonNull Either<L, T4> ts4) Creates aFor-comprehension of 4 Eithers.static <L,T1, T2, T3, T4, T5>
API.For5Either<L, T1, T2, T3, T4, T5> For(@NonNull Either<L, T1> ts1, @NonNull Either<L, T2> ts2, @NonNull Either<L, T3> ts3, @NonNull Either<L, T4> ts4, @NonNull Either<L, T5> ts5) Creates aFor-comprehension of 5 Eithers.static <L,T1, T2, T3, T4, T5, T6>
API.For6Either<L, T1, T2, T3, T4, T5, T6> For(@NonNull Either<L, T1> ts1, @NonNull Either<L, T2> ts2, @NonNull Either<L, T3> ts3, @NonNull Either<L, T4> ts4, @NonNull Either<L, T5> ts5, @NonNull Either<L, T6> ts6) Creates aFor-comprehension of 6 Eithers.static <L,T1, T2, T3, T4, T5, T6, T7>
API.For7Either<L, T1, T2, T3, T4, T5, T6, T7> For(@NonNull Either<L, T1> ts1, @NonNull Either<L, T2> ts2, @NonNull Either<L, T3> ts3, @NonNull Either<L, T4> ts4, @NonNull Either<L, T5> ts5, @NonNull Either<L, T6> ts6, @NonNull Either<L, T7> ts7) Creates aFor-comprehension of 7 Eithers.static <L,T1, T2, T3, T4, T5, T6, T7, T8>
API.For8Either<L, T1, T2, T3, T4, T5, T6, T7, T8> For(@NonNull Either<L, T1> ts1, @NonNull Either<L, T2> ts2, @NonNull Either<L, T3> ts3, @NonNull Either<L, T4> ts4, @NonNull Either<L, T5> ts5, @NonNull Either<L, T6> ts6, @NonNull Either<L, T7> ts7, @NonNull Either<L, T8> ts8) Creates aFor-comprehension of 8 Eithers.static <T1> API.For1Option<T1> Creates aFor-comprehension of one Option.static <T1,T2> API.ForLazy2Option <T1, T2> Creates a lazyFor-comprehension over two Options.static <T1,T2, T3>
API.ForLazy3Option<T1, T2, T3> For(@NonNull Option<T1> ts1, @NonNull Function1<? super T1, Option<T2>> ts2, @NonNull Function2<? super T1, ? super T2, Option<T3>> ts3) Creates a lazyFor-comprehension over three Options.static <T1,T2, T3, T4>
API.ForLazy4Option<T1, T2, T3, T4> For(@NonNull Option<T1> ts1, @NonNull Function1<? super T1, Option<T2>> ts2, @NonNull Function2<? super T1, ? super T2, Option<T3>> ts3, @NonNull Function3<? super T1, ? super T2, ? super T3, Option<T4>> ts4) Creates a lazyFor-comprehension over 4 Options.static <T1,T2, T3, T4, T5>
API.ForLazy5Option<T1, T2, T3, T4, T5> For(@NonNull Option<T1> ts1, @NonNull Function1<? super T1, Option<T2>> ts2, @NonNull Function2<? super T1, ? super T2, Option<T3>> ts3, @NonNull Function3<? super T1, ? super T2, ? super T3, Option<T4>> ts4, @NonNull Function4<? super T1, ? super T2, ? super T3, ? super T4, Option<T5>> ts5) Creates a lazyFor-comprehension over 5 Options.static <T1,T2, T3, T4, T5, T6>
API.ForLazy6Option<T1, T2, T3, T4, T5, T6> For(@NonNull Option<T1> ts1, @NonNull Function1<? super T1, Option<T2>> ts2, @NonNull Function2<? super T1, ? super T2, Option<T3>> ts3, @NonNull Function3<? super T1, ? super T2, ? super T3, Option<T4>> ts4, @NonNull Function4<? super T1, ? super T2, ? super T3, ? super T4, Option<T5>> ts5, @NonNull Function5<? super T1, ? super T2, ? super T3, ? super T4, ? super T5, Option<T6>> ts6) Creates a lazyFor-comprehension over 6 Options.static <T1,T2, T3, T4, T5, T6, T7>
API.ForLazy7Option<T1, T2, T3, T4, T5, T6, T7> For(@NonNull Option<T1> ts1, @NonNull Function1<? super T1, Option<T2>> ts2, @NonNull Function2<? super T1, ? super T2, Option<T3>> ts3, @NonNull Function3<? super T1, ? super T2, ? super T3, Option<T4>> ts4, @NonNull Function4<? super T1, ? super T2, ? super T3, ? super T4, Option<T5>> ts5, @NonNull Function5<? super T1, ? super T2, ? super T3, ? super T4, ? super T5, Option<T6>> ts6, @NonNull Function6<? super T1, ? super T2, ? super T3, ? super T4, ? super T5, ? super T6, Option<T7>> ts7) Creates a lazyFor-comprehension over 7 Options.static <T1,T2, T3, T4, T5, T6, T7, T8>
API.ForLazy8Option<T1, T2, T3, T4, T5, T6, T7, T8> For(@NonNull Option<T1> ts1, @NonNull Function1<? super T1, Option<T2>> ts2, @NonNull Function2<? super T1, ? super T2, Option<T3>> ts3, @NonNull Function3<? super T1, ? super T2, ? super T3, Option<T4>> ts4, @NonNull Function4<? super T1, ? super T2, ? super T3, ? super T4, Option<T5>> ts5, @NonNull Function5<? super T1, ? super T2, ? super T3, ? super T4, ? super T5, Option<T6>> ts6, @NonNull Function6<? super T1, ? super T2, ? super T3, ? super T4, ? super T5, ? super T6, Option<T7>> ts7, @NonNull Function7<? super T1, ? super T2, ? super T3, ? super T4, ? super T5, ? super T6, ? super T7, Option<T8>> ts8) Creates a lazyFor-comprehension over 8 Options.static <T1,T2> API.For2Option <T1, T2> Creates aFor-comprehension of two Options.static <T1,T2, T3>
API.For3Option<T1, T2, T3> Creates aFor-comprehension of three Options.static <T1,T2, T3, T4>
API.For4Option<T1, T2, T3, T4> For(@NonNull Option<T1> ts1, @NonNull Option<T2> ts2, @NonNull Option<T3> ts3, @NonNull Option<T4> ts4) Creates aFor-comprehension of 4 Options.static <T1,T2, T3, T4, T5>
API.For5Option<T1, T2, T3, T4, T5> For(@NonNull Option<T1> ts1, @NonNull Option<T2> ts2, @NonNull Option<T3> ts3, @NonNull Option<T4> ts4, @NonNull Option<T5> ts5) Creates aFor-comprehension of 5 Options.static <T1,T2, T3, T4, T5, T6>
API.For6Option<T1, T2, T3, T4, T5, T6> For(@NonNull Option<T1> ts1, @NonNull Option<T2> ts2, @NonNull Option<T3> ts3, @NonNull Option<T4> ts4, @NonNull Option<T5> ts5, @NonNull Option<T6> ts6) Creates aFor-comprehension of 6 Options.static <T1,T2, T3, T4, T5, T6, T7>
API.For7Option<T1, T2, T3, T4, T5, T6, T7> For(@NonNull Option<T1> ts1, @NonNull Option<T2> ts2, @NonNull Option<T3> ts3, @NonNull Option<T4> ts4, @NonNull Option<T5> ts5, @NonNull Option<T6> ts6, @NonNull Option<T7> ts7) Creates aFor-comprehension of 7 Options.static <T1,T2, T3, T4, T5, T6, T7, T8>
API.For8Option<T1, T2, T3, T4, T5, T6, T7, T8> For(@NonNull Option<T1> ts1, @NonNull Option<T2> ts2, @NonNull Option<T3> ts3, @NonNull Option<T4> ts4, @NonNull Option<T5> ts5, @NonNull Option<T6> ts6, @NonNull Option<T7> ts7, @NonNull Option<T8> ts8) Creates aFor-comprehension of 8 Options.static <T1> API.For1Try<T1> Creates aFor-comprehension of one Try.static <T1,T2> API.ForLazy2Try <T1, T2> Creates a lazyFor-comprehension over two Trys.static <T1,T2, T3>
API.ForLazy3Try<T1, T2, T3> For(@NonNull Try<T1> ts1, @NonNull Function1<? super T1, Try<T2>> ts2, @NonNull Function2<? super T1, ? super T2, Try<T3>> ts3) Creates a lazyFor-comprehension over three Trys.static <T1,T2, T3, T4>
API.ForLazy4Try<T1, T2, T3, T4> For(@NonNull Try<T1> ts1, @NonNull Function1<? super T1, Try<T2>> ts2, @NonNull Function2<? super T1, ? super T2, Try<T3>> ts3, @NonNull Function3<? super T1, ? super T2, ? super T3, Try<T4>> ts4) Creates a lazyFor-comprehension over 4 Trys.static <T1,T2, T3, T4, T5>
API.ForLazy5Try<T1, T2, T3, T4, T5> For(@NonNull Try<T1> ts1, @NonNull Function1<? super T1, Try<T2>> ts2, @NonNull Function2<? super T1, ? super T2, Try<T3>> ts3, @NonNull Function3<? super T1, ? super T2, ? super T3, Try<T4>> ts4, @NonNull Function4<? super T1, ? super T2, ? super T3, ? super T4, Try<T5>> ts5) Creates a lazyFor-comprehension over 5 Trys.static <T1,T2, T3, T4, T5, T6>
API.ForLazy6Try<T1, T2, T3, T4, T5, T6> For(@NonNull Try<T1> ts1, @NonNull Function1<? super T1, Try<T2>> ts2, @NonNull Function2<? super T1, ? super T2, Try<T3>> ts3, @NonNull Function3<? super T1, ? super T2, ? super T3, Try<T4>> ts4, @NonNull Function4<? super T1, ? super T2, ? super T3, ? super T4, Try<T5>> ts5, @NonNull Function5<? super T1, ? super T2, ? super T3, ? super T4, ? super T5, Try<T6>> ts6) Creates a lazyFor-comprehension over 6 Trys.static <T1,T2, T3, T4, T5, T6, T7>
API.ForLazy7Try<T1, T2, T3, T4, T5, T6, T7> For(@NonNull Try<T1> ts1, @NonNull Function1<? super T1, Try<T2>> ts2, @NonNull Function2<? super T1, ? super T2, Try<T3>> ts3, @NonNull Function3<? super T1, ? super T2, ? super T3, Try<T4>> ts4, @NonNull Function4<? super T1, ? super T2, ? super T3, ? super T4, Try<T5>> ts5, @NonNull Function5<? super T1, ? super T2, ? super T3, ? super T4, ? super T5, Try<T6>> ts6, @NonNull Function6<? super T1, ? super T2, ? super T3, ? super T4, ? super T5, ? super T6, Try<T7>> ts7) Creates a lazyFor-comprehension over 7 Trys.static <T1,T2, T3, T4, T5, T6, T7, T8>
API.ForLazy8Try<T1, T2, T3, T4, T5, T6, T7, T8> For(@NonNull Try<T1> ts1, @NonNull Function1<? super T1, Try<T2>> ts2, @NonNull Function2<? super T1, ? super T2, Try<T3>> ts3, @NonNull Function3<? super T1, ? super T2, ? super T3, Try<T4>> ts4, @NonNull Function4<? super T1, ? super T2, ? super T3, ? super T4, Try<T5>> ts5, @NonNull Function5<? super T1, ? super T2, ? super T3, ? super T4, ? super T5, Try<T6>> ts6, @NonNull Function6<? super T1, ? super T2, ? super T3, ? super T4, ? super T5, ? super T6, Try<T7>> ts7, @NonNull Function7<? super T1, ? super T2, ? super T3, ? super T4, ? super T5, ? super T6, ? super T7, Try<T8>> ts8) Creates a lazyFor-comprehension over 8 Trys.static <T1,T2> API.For2Try <T1, T2> Creates aFor-comprehension of two Trys.static <T1,T2, T3>
API.For3Try<T1, T2, T3> Creates aFor-comprehension of three Trys.static <T1,T2, T3, T4>
API.For4Try<T1, T2, T3, T4> Creates aFor-comprehension of 4 Trys.static <T1,T2, T3, T4, T5>
API.For5Try<T1, T2, T3, T4, T5> For(@NonNull Try<T1> ts1, @NonNull Try<T2> ts2, @NonNull Try<T3> ts3, @NonNull Try<T4> ts4, @NonNull Try<T5> ts5) Creates aFor-comprehension of 5 Trys.static <T1,T2, T3, T4, T5, T6>
API.For6Try<T1, T2, T3, T4, T5, T6> For(@NonNull Try<T1> ts1, @NonNull Try<T2> ts2, @NonNull Try<T3> ts3, @NonNull Try<T4> ts4, @NonNull Try<T5> ts5, @NonNull Try<T6> ts6) Creates aFor-comprehension of 6 Trys.static <T1,T2, T3, T4, T5, T6, T7>
API.For7Try<T1, T2, T3, T4, T5, T6, T7> For(@NonNull Try<T1> ts1, @NonNull Try<T2> ts2, @NonNull Try<T3> ts3, @NonNull Try<T4> ts4, @NonNull Try<T5> ts5, @NonNull Try<T6> ts6, @NonNull Try<T7> ts7) Creates aFor-comprehension of 7 Trys.static <T1,T2, T3, T4, T5, T6, T7, T8>
API.For8Try<T1, T2, T3, T4, T5, T6, T7, T8> For(@NonNull Try<T1> ts1, @NonNull Try<T2> ts2, @NonNull Try<T3> ts3, @NonNull Try<T4> ts4, @NonNull Try<T5> ts5, @NonNull Try<T6> ts6, @NonNull Try<T7> ts7, @NonNull Try<T8> ts8) Creates aFor-comprehension of 8 Trys.static <L,T1> API.For1Validation <L, T1> For(@NonNull Validation<L, T1> ts1) Creates aFor-comprehension of one Validation.static <L,T1, T2>
API.ForLazy2Validation<L, T1, T2> For(@NonNull Validation<L, T1> ts1, @NonNull Function1<? super T1, Validation<L, T2>> ts2) Creates a lazyFor-comprehension over two Validations.static <L,T1, T2, T3>
API.ForLazy3Validation<L, T1, T2, T3> For(@NonNull Validation<L, T1> ts1, @NonNull Function1<? super T1, Validation<L, T2>> ts2, @NonNull Function2<? super T1, ? super T2, Validation<L, T3>> ts3) Creates a lazyFor-comprehension over three Validations.static <L,T1, T2, T3, T4>
API.ForLazy4Validation<L, T1, T2, T3, T4> For(@NonNull Validation<L, T1> ts1, @NonNull Function1<? super T1, Validation<L, T2>> ts2, @NonNull Function2<? super T1, ? super T2, Validation<L, T3>> ts3, @NonNull Function3<? super T1, ? super T2, ? super T3, Validation<L, T4>> ts4) Creates a lazyFor-comprehension over 4 Validations.static <L,T1, T2, T3, T4, T5>
API.ForLazy5Validation<L, T1, T2, T3, T4, T5> For(@NonNull Validation<L, T1> ts1, @NonNull Function1<? super T1, Validation<L, T2>> ts2, @NonNull Function2<? super T1, ? super T2, Validation<L, T3>> ts3, @NonNull Function3<? super T1, ? super T2, ? super T3, Validation<L, T4>> ts4, @NonNull Function4<? super T1, ? super T2, ? super T3, ? super T4, Validation<L, T5>> ts5) Creates a lazyFor-comprehension over 5 Validations.static <L,T1, T2, T3, T4, T5, T6>
API.ForLazy6Validation<L, T1, T2, T3, T4, T5, T6> For(@NonNull Validation<L, T1> ts1, @NonNull Function1<? super T1, Validation<L, T2>> ts2, @NonNull Function2<? super T1, ? super T2, Validation<L, T3>> ts3, @NonNull Function3<? super T1, ? super T2, ? super T3, Validation<L, T4>> ts4, @NonNull Function4<? super T1, ? super T2, ? super T3, ? super T4, Validation<L, T5>> ts5, @NonNull Function5<? super T1, ? super T2, ? super T3, ? super T4, ? super T5, Validation<L, T6>> ts6) Creates a lazyFor-comprehension over 6 Validations.static <L,T1, T2, T3, T4, T5, T6, T7>
API.ForLazy7Validation<L, T1, T2, T3, T4, T5, T6, T7> For(@NonNull Validation<L, T1> ts1, @NonNull Function1<? super T1, Validation<L, T2>> ts2, @NonNull Function2<? super T1, ? super T2, Validation<L, T3>> ts3, @NonNull Function3<? super T1, ? super T2, ? super T3, Validation<L, T4>> ts4, @NonNull Function4<? super T1, ? super T2, ? super T3, ? super T4, Validation<L, T5>> ts5, @NonNull Function5<? super T1, ? super T2, ? super T3, ? super T4, ? super T5, Validation<L, T6>> ts6, @NonNull Function6<? super T1, ? super T2, ? super T3, ? super T4, ? super T5, ? super T6, Validation<L, T7>> ts7) Creates a lazyFor-comprehension over 7 Validations.static <L,T1, T2, T3, T4, T5, T6, T7, T8>
API.ForLazy8Validation<L, T1, T2, T3, T4, T5, T6, T7, T8> For(@NonNull Validation<L, T1> ts1, @NonNull Function1<? super T1, Validation<L, T2>> ts2, @NonNull Function2<? super T1, ? super T2, Validation<L, T3>> ts3, @NonNull Function3<? super T1, ? super T2, ? super T3, Validation<L, T4>> ts4, @NonNull Function4<? super T1, ? super T2, ? super T3, ? super T4, Validation<L, T5>> ts5, @NonNull Function5<? super T1, ? super T2, ? super T3, ? super T4, ? super T5, Validation<L, T6>> ts6, @NonNull Function6<? super T1, ? super T2, ? super T3, ? super T4, ? super T5, ? super T6, Validation<L, T7>> ts7, @NonNull Function7<? super T1, ? super T2, ? super T3, ? super T4, ? super T5, ? super T6, ? super T7, Validation<L, T8>> ts8) Creates a lazyFor-comprehension over 8 Validations.static <L,T1, T2>
API.For2Validation<L, T1, T2> For(@NonNull Validation<L, T1> ts1, @NonNull Validation<L, T2> ts2) Creates aFor-comprehension of two Validations.static <L,T1, T2, T3>
API.For3Validation<L, T1, T2, T3> For(@NonNull Validation<L, T1> ts1, @NonNull Validation<L, T2> ts2, @NonNull Validation<L, T3> ts3) Creates aFor-comprehension of three Validations.static <L,T1, T2, T3, T4>
API.For4Validation<L, T1, T2, T3, T4> For(@NonNull Validation<L, T1> ts1, @NonNull Validation<L, T2> ts2, @NonNull Validation<L, T3> ts3, @NonNull Validation<L, T4> ts4) Creates aFor-comprehension of 4 Validations.static <L,T1, T2, T3, T4, T5>
API.For5Validation<L, T1, T2, T3, T4, T5> For(@NonNull Validation<L, T1> ts1, @NonNull Validation<L, T2> ts2, @NonNull Validation<L, T3> ts3, @NonNull Validation<L, T4> ts4, @NonNull Validation<L, T5> ts5) Creates aFor-comprehension of 5 Validations.static <L,T1, T2, T3, T4, T5, T6>
API.For6Validation<L, T1, T2, T3, T4, T5, T6> For(@NonNull Validation<L, T1> ts1, @NonNull Validation<L, T2> ts2, @NonNull Validation<L, T3> ts3, @NonNull Validation<L, T4> ts4, @NonNull Validation<L, T5> ts5, @NonNull Validation<L, T6> ts6) Creates aFor-comprehension of 6 Validations.static <L,T1, T2, T3, T4, T5, T6, T7>
API.For7Validation<L, T1, T2, T3, T4, T5, T6, T7> For(@NonNull Validation<L, T1> ts1, @NonNull Validation<L, T2> ts2, @NonNull Validation<L, T3> ts3, @NonNull Validation<L, T4> ts4, @NonNull Validation<L, T5> ts5, @NonNull Validation<L, T6> ts6, @NonNull Validation<L, T7> ts7) Creates aFor-comprehension of 7 Validations.static <L,T1, T2, T3, T4, T5, T6, T7, T8>
API.For8Validation<L, T1, T2, T3, T4, T5, T6, T7, T8> For(@NonNull Validation<L, T1> ts1, @NonNull Validation<L, T2> ts2, @NonNull Validation<L, T3> ts3, @NonNull Validation<L, T4> ts4, @NonNull Validation<L, T5> ts5, @NonNull Validation<L, T6> ts6, @NonNull Validation<L, T7> ts7, @NonNull Validation<L, T8> ts8) Creates aFor-comprehension of 8 Validations.static <T1> API.For1<T1> Creates aFor-comprehension of one Iterable.static <T1,T2> API.For2 <T1, T2> Creates aFor-comprehension of two Iterables.static <T1,T2, T3>
API.For3<T1, T2, T3> Creates aFor-comprehension of three Iterables.static <T1,T2, T3, T4>
API.For4<T1, T2, T3, T4> For(@NonNull Iterable<T1> ts1, @NonNull Iterable<T2> ts2, @NonNull Iterable<T3> ts3, @NonNull Iterable<T4> ts4) Creates aFor-comprehension of 4 Iterables.static <T1,T2, T3, T4, T5>
API.For5<T1, T2, T3, T4, T5> For(@NonNull Iterable<T1> ts1, @NonNull Iterable<T2> ts2, @NonNull Iterable<T3> ts3, @NonNull Iterable<T4> ts4, @NonNull Iterable<T5> ts5) Creates aFor-comprehension of 5 Iterables.static <T1,T2, T3, T4, T5, T6>
API.For6<T1, T2, T3, T4, T5, T6> For(@NonNull Iterable<T1> ts1, @NonNull Iterable<T2> ts2, @NonNull Iterable<T3> ts3, @NonNull Iterable<T4> ts4, @NonNull Iterable<T5> ts5, @NonNull Iterable<T6> ts6) Creates aFor-comprehension of 6 Iterables.static <T1,T2, T3, T4, T5, T6, T7>
API.For7<T1, T2, T3, T4, T5, T6, T7> For(@NonNull Iterable<T1> ts1, @NonNull Iterable<T2> ts2, @NonNull Iterable<T3> ts3, @NonNull Iterable<T4> ts4, @NonNull Iterable<T5> ts5, @NonNull Iterable<T6> ts6, @NonNull Iterable<T7> ts7) Creates aFor-comprehension of 7 Iterables.static <T1,T2, T3, T4, T5, T6, T7, T8>
API.For8<T1, T2, T3, T4, T5, T6, T7, T8> For(@NonNull Iterable<T1> ts1, @NonNull Iterable<T2> ts2, @NonNull Iterable<T3> ts3, @NonNull Iterable<T4> ts4, @NonNull Iterable<T5> ts5, @NonNull Iterable<T6> ts6, @NonNull Iterable<T7> ts7, @NonNull Iterable<T8> ts8) Creates aFor-comprehension of 8 Iterables.static <T,U> Iterator <U> A shortcut forIterator.ofAll(ts).flatMap(f)which allows us to write real for-comprehensions usingFor(...).yield(...).static <R> Function0<R> Alias forFunction0.of(Function0)static <T1,R> Function1 <T1, R> Alias forFunction1.of(Function1)static <T1,T2, R>
Function2<T1, T2, R> Alias forFunction2.of(Function2)static <T1,T2, T3, R>
Function3<T1, T2, T3, R> Alias forFunction3.of(Function3)static <T1,T2, T3, T4, R>
Function4<T1, T2, T3, T4, R> Alias forFunction4.of(Function4)static <T1,T2, T3, T4, T5, R>
Function5<T1, T2, T3, T4, T5, R> Alias forFunction5.of(Function5)static <T1,T2, T3, T4, T5, T6, R>
Function6<T1, T2, T3, T4, T5, T6, R> Alias forFunction6.of(Function6)static <T1,T2, T3, T4, T5, T6, T7, R>
Function7<T1, T2, T3, T4, T5, T6, T7, R> Alias forFunction7.of(Function7)static <T1,T2, T3, T4, T5, T6, T7, T8, R>
Function8<T1, T2, T3, T4, T5, T6, T7, T8, R> Alias forFunction8.of(Function8)static <T> Future<T> Future(CheckedFunction0<? extends T> computation) Alias forFuture.of(CheckedFunction0)static <T> Future<T> Future(Executor executorService, CheckedFunction0<? extends T> computation) Alias forFuture.of(Executor, CheckedFunction0)static <T> Future<T> Alias forFuture.successful(Executor, Object)static <T> Future<T> Future(T result) Alias forFuture.successful(Object)static <T> IndexedSeq<T> Alias forVector.empty()static <T> IndexedSeq<T> IndexedSeq(T element) Alias forVector.of(Object)static <T> IndexedSeq<T> IndexedSeq(T @NonNull ... elements) Alias forVector.of(Object...)static <E,T> Validation.Invalid <E, T> Invalid(E error) Alias forValidation.invalid(Object)static <T> Lazy<T> Alias forLazy.of(Supplier)static <L,R> Either.Left <L, R> Left(L left) Alias forEither.left(Object)static <K,V> Map <K, V> Alias forLinkedHashMap.empty()static <K,V> Map <K, V> Deprecated.Will be removed in a future version.static <K,V> Map <K, V> LinkedMap(K k1, V v1) Alias forLinkedHashMap.of(Object, Object)static <K,V> Map <K, V> LinkedMap(K k1, V v1, K k2, V v2) static <K,V> Map <K, V> LinkedMap(K k1, V v1, K k2, V v2, K k3, V v3) static <K,V> Map <K, V> LinkedMap(K k1, V v1, K k2, V v2, K k3, V v3, K k4, V v4) static <K,V> Map <K, V> LinkedMap(K k1, V v1, K k2, V v2, K k3, V v3, K k4, V v4, K k5, V v5) static <K,V> Map <K, V> LinkedMap(K k1, V v1, K k2, V v2, K k3, V v3, K k4, V v4, K k5, V v5, K k6, V v6) static <K,V> Map <K, V> LinkedMap(K k1, V v1, K k2, V v2, K k3, V v3, K k4, V v4, K k5, V v5, K k6, V v6, K k7, V v7) static <K,V> Map <K, V> LinkedMap(K k1, V v1, K k2, V v2, K k3, V v3, K k4, V v4, K k5, V v5, K k6, V v6, K k7, V v7, K k8, V v8) static <K,V> Map <K, V> LinkedMap(K k1, V v1, K k2, V v2, K k3, V v3, K k4, V v4, K k5, V v5, K k6, V v6, K k7, V v7, K k8, V v8, K k9, V v9) static <K,V> Map <K, V> LinkedMap(K k1, V v1, K k2, V v2, K k3, V v3, K k4, V v4, K k5, V v5, K k6, V v6, K k7, V v7, K k8, V v8, K k9, V v9, K k10, V v10) static <T> Set<T> Alias forLinkedHashSet.empty()static <T> Set<T> LinkedSet(T element) Alias forLinkedHashSet.of(Object)static <T> Set<T> LinkedSet(T @NonNull ... elements) Alias forLinkedHashSet.of(Object...)static <T> List<T> List()Alias forList.empty()static <T> List<T> List(T element) Alias forList.of(Object)static <T> List<T> List(T @NonNull ... elements) Alias forList.of(Object...)static <K,V> Map <K, V> Map()Alias forHashMap.empty()static <K,V> Map <K, V> Deprecated.Will be removed in a future version.static <K,V> Map <K, V> Map(K k1, V v1) Alias forHashMap.of(Object, Object)static <K,V> Map <K, V> Map(K k1, V v1, K k2, V v2) static <K,V> Map <K, V> Map(K k1, V v1, K k2, V v2, K k3, V v3) static <K,V> Map <K, V> Map(K k1, V v1, K k2, V v2, K k3, V v3, K k4, V v4) static <K,V> Map <K, V> Map(K k1, V v1, K k2, V v2, K k3, V v3, K k4, V v4, K k5, V v5) static <K,V> Map <K, V> Map(K k1, V v1, K k2, V v2, K k3, V v3, K k4, V v4, K k5, V v5, K k6, V v6) static <K,V> Map <K, V> Map(K k1, V v1, K k2, V v2, K k3, V v3, K k4, V v4, K k5, V v5, K k6, V v6, K k7, V v7) static <K,V> Map <K, V> Map(K k1, V v1, K k2, V v2, K k3, V v3, K k4, V v4, K k5, V v5, K k6, V v6, K k7, V v7, K k8, V v8) static <K,V> Map <K, V> Map(K k1, V v1, K k2, V v2, K k3, V v3, K k4, V v4, K k5, V v5, K k6, V v6, K k7, V v7, K k8, V v8, K k9, V v9) static <K,V> Map <K, V> Map(K k1, V v1, K k2, V v2, K k3, V v3, K k4, V v4, K k5, V v5, K k6, V v6, K k7, V v7, K k8, V v8, K k9, V v9, K k10, V v10) static <T> API.Match<T> Match(T value) Entry point of the match API.static <T> Option.None<T> None()Alias forOption.none()static <T> Option<T> Option(T value) Alias forOption.of(Object)static voidShortcut forSystem.out.print(obj).static voidShortcut forSystem.out.printf(format, args).static voidprintln()Shortcut forSystem.out.println().static voidShortcut forSystem.out.println(obj).static <T extends Comparable<? super T>>
PriorityQueue<T> Alias forPriorityQueue.empty()static <T extends Comparable<? super T>>
PriorityQueue<T> PriorityQueue(@NonNull Comparator<? super T> comparator) Alias forPriorityQueue.empty(Comparator)static <T> PriorityQueue<T> PriorityQueue(@NonNull Comparator<? super T> comparator, T @NonNull ... elements) Alias forPriorityQueue.of(Comparator, Object...)static <T> PriorityQueue<T> PriorityQueue(Comparator<? super T> comparator, T element) Alias forPriorityQueue.of(Comparator, Object)static <T extends Comparable<? super T>>
PriorityQueue<T> PriorityQueue(T element) Alias forPriorityQueue.of(Comparable)static <T extends Comparable<? super T>>
PriorityQueue<T> PriorityQueue(T @NonNull ... elements) Alias forPriorityQueue.of(Comparable...)static <T> Queue<T> Queue()Alias forQueue.empty()static <T> Queue<T> Queue(T element) Alias forQueue.of(Object)static <T> Queue<T> Queue(T @NonNull ... elements) Alias forQueue.of(Object...)static <L,R> Either.Right <L, R> Right(R right) Alias forEither.right(Object)static VoidRuns aunitof work and returnsVoid.static <T> Seq<T> Seq()Alias forList.empty()static <T> Seq<T> Seq(T element) Alias forList.of(Object)static <T> Seq<T> Seq(T @NonNull ... elements) Alias forList.of(Object...)static <T> Set<T> Set()Alias forHashSet.empty()static <T> Set<T> Set(T element) Alias forHashSet.of(Object)static <T> Set<T> Set(T @NonNull ... elements) Alias forHashSet.of(Object...)static <T> Option.Some<T> Some(T value) Alias forOption.some(Object)static <K extends Comparable<? super K>,V>
SortedMap<K, V> Alias forTreeMap.empty()static <K extends Comparable<? super K>,V>
SortedMap<K, V> Deprecated.Will be removed in a future version.static <K,V> SortedMap <K, V> SortedMap(@NonNull Comparator<? super K> keyComparator) Alias forTreeMap.empty(Comparator)static <K,V> SortedMap <K, V> SortedMap(@NonNull Comparator<? super K> keyComparator, Tuple2<? extends K, ? extends V> @NonNull ... entries) Deprecated.Will be removed in a future version.static <K,V> SortedMap <K, V> SortedMap(@NonNull Comparator<? super K> keyComparator, K key, V value) Alias forTreeMap.of(Comparator, Object, Object)static <K extends Comparable<? super K>,V>
SortedMap<K, V> Deprecated.Will be removed in a future version.static <K extends Comparable<? super K>,V>
SortedMap<K, V> SortedMap(K k1, V v1) Alias forTreeMap.of(Comparable, Object)static <K extends Comparable<? super K>,V>
SortedMap<K, V> SortedMap(K k1, V v1, K k2, V v2) static <K extends Comparable<? super K>,V>
SortedMap<K, V> SortedMap(K k1, V v1, K k2, V v2, K k3, V v3) static <K extends Comparable<? super K>,V>
SortedMap<K, V> SortedMap(K k1, V v1, K k2, V v2, K k3, V v3, K k4, V v4) static <K extends Comparable<? super K>,V>
SortedMap<K, V> SortedMap(K k1, V v1, K k2, V v2, K k3, V v3, K k4, V v4, K k5, V v5) static <K extends Comparable<? super K>,V>
SortedMap<K, V> SortedMap(K k1, V v1, K k2, V v2, K k3, V v3, K k4, V v4, K k5, V v5, K k6, V v6) static <K extends Comparable<? super K>,V>
SortedMap<K, V> SortedMap(K k1, V v1, K k2, V v2, K k3, V v3, K k4, V v4, K k5, V v5, K k6, V v6, K k7, V v7) static <K extends Comparable<? super K>,V>
SortedMap<K, V> SortedMap(K k1, V v1, K k2, V v2, K k3, V v3, K k4, V v4, K k5, V v5, K k6, V v6, K k7, V v7, K k8, V v8) static <K extends Comparable<? super K>,V>
SortedMap<K, V> SortedMap(K k1, V v1, K k2, V v2, K k3, V v3, K k4, V v4, K k5, V v5, K k6, V v6, K k7, V v7, K k8, V v8, K k9, V v9) static <K extends Comparable<? super K>,V>
SortedMap<K, V> SortedMap(K k1, V v1, K k2, V v2, K k3, V v3, K k4, V v4, K k5, V v5, K k6, V v6, K k7, V v7, K k8, V v8, K k9, V v9, K k10, V v10) static <T extends Comparable<? super T>>
SortedSet<T> Alias forTreeSet.empty()static <T extends Comparable<? super T>>
SortedSet<T> SortedSet(@NonNull Comparator<? super T> comparator) Alias forTreeSet.empty(Comparator)static <T> SortedSet<T> SortedSet(@NonNull Comparator<? super T> comparator, T @NonNull ... elements) Alias forTreeSet.of(Comparator, Object...)static <T> SortedSet<T> SortedSet(Comparator<? super T> comparator, T element) Alias forTreeSet.of(Comparator, Object)static <T extends Comparable<? super T>>
SortedSet<T> SortedSet(T element) Alias forTreeSet.of(Comparable)static <T extends Comparable<? super T>>
SortedSet<T> SortedSet(T @NonNull ... elements) Alias forTreeSet.of(Comparable...)static <T> Stream<T> Stream()Alias forStream.empty()static <T> Stream<T> Stream(T element) Alias forStream.of(Object)static <T> Stream<T> Stream(T @NonNull ... elements) Alias forStream.of(Object...)static <T> Try.Success<T> Success(T value) Alias forTry.success(Object)static <T> TTODO()A temporary replacement for an implementations used during prototyping.static <T> TA temporary replacement for an implementations used during prototyping.static <T> Try<T> Try(CheckedFunction0<? extends T> supplier) Alias forTry.of(CheckedFunction0)static Tuple0Tuple()Alias forTuple.empty()static <T1> Tuple1<T1> Tuple(T1 t1) Alias forTuple.of(Object)Creates a tuple of one element.static <T1,T2> Tuple2 <T1, T2> Tuple(T1 t1, T2 t2) Alias forTuple.of(Object, Object)Creates a tuple of two elements.static <T1,T2, T3>
Tuple3<T1, T2, T3> Tuple(T1 t1, T2 t2, T3 t3) Alias forTuple.of(Object, Object, Object)Creates a tuple of three elements.static <T1,T2, T3, T4>
Tuple4<T1, T2, T3, T4> Tuple(T1 t1, T2 t2, T3 t3, T4 t4) Alias forTuple.of(Object, Object, Object, Object)Creates a tuple of 4 elements.static <T1,T2, T3, T4, T5>
Tuple5<T1, T2, T3, T4, T5> Tuple(T1 t1, T2 t2, T3 t3, T4 t4, T5 t5) Alias forTuple.of(Object, Object, Object, Object, Object)Creates a tuple of 5 elements.static <T1,T2, T3, T4, T5, T6>
Tuple6<T1, T2, T3, T4, T5, T6> Tuple(T1 t1, T2 t2, T3 t3, T4 t4, T5 t5, T6 t6) Alias forTuple.of(Object, Object, Object, Object, Object, Object)Creates a tuple of 6 elements.static <T1,T2, T3, T4, T5, T6, T7>
Tuple7<T1, T2, T3, T4, T5, T6, T7> Tuple(T1 t1, T2 t2, T3 t3, T4 t4, T5 t5, T6 t6, T7 t7) Alias forTuple.of(Object, Object, Object, Object, Object, Object, Object)Creates a tuple of 7 elements.static <T1,T2, T3, T4, T5, T6, T7, T8>
Tuple8<T1, T2, T3, T4, T5, T6, T7, T8> Tuple(T1 t1, T2 t2, T3 t3, T4 t4, T5 t5, T6 t6, T7 t7, T8 t8) Alias forTuple.of(Object, Object, Object, Object, Object, Object, Object, Object)Creates a tuple of 8 elements.static <R> Function0<R> unchecked(CheckedFunction0<R> f) Alias forCheckedFunction0.unchecked()static <T1,R> Function1 <T1, R> unchecked(CheckedFunction1<T1, R> f) Alias forCheckedFunction1.unchecked()static <T1,T2, R>
Function2<T1, T2, R> unchecked(CheckedFunction2<T1, T2, R> f) Alias forCheckedFunction2.unchecked()static <T1,T2, T3, R>
Function3<T1, T2, T3, R> unchecked(CheckedFunction3<T1, T2, T3, R> f) Alias forCheckedFunction3.unchecked()static <T1,T2, T3, T4, R>
Function4<T1, T2, T3, T4, R> unchecked(CheckedFunction4<T1, T2, T3, T4, R> f) Alias forCheckedFunction4.unchecked()static <T1,T2, T3, T4, T5, R>
Function5<T1, T2, T3, T4, T5, R> unchecked(CheckedFunction5<T1, T2, T3, T4, T5, R> f) Alias forCheckedFunction5.unchecked()static <T1,T2, T3, T4, T5, T6, R>
Function6<T1, T2, T3, T4, T5, T6, R> unchecked(CheckedFunction6<T1, T2, T3, T4, T5, T6, R> f) Alias forCheckedFunction6.unchecked()static <T1,T2, T3, T4, T5, T6, T7, R>
Function7<T1, T2, T3, T4, T5, T6, T7, R> unchecked(CheckedFunction7<T1, T2, T3, T4, T5, T6, T7, R> f) Alias forCheckedFunction7.unchecked()static <T1,T2, T3, T4, T5, T6, T7, T8, R>
Function8<T1, T2, T3, T4, T5, T6, T7, T8, R> unchecked(CheckedFunction8<T1, T2, T3, T4, T5, T6, T7, T8, R> f) Alias forCheckedFunction8.unchecked()static <E,T> Validation.Valid <E, T> Valid(T value) Alias forValidation.valid(Object)static <T> Vector<T> Vector()Alias forVector.empty()static <T> Vector<T> Vector(T element) Alias forVector.of(Object)static <T> Vector<T> Vector(T @NonNull ... elements) Alias forVector.of(Object...)
-
Method Details
-
TODO
public static <T> T TODO()A temporary replacement for an implementations used during prototyping.Example:
public HttpResponse getResponse(HttpRequest request) { return TODO(); } final HttpResponse response = getHttpResponse(TODO());- Type Parameters:
T- The result type of the missing implementation.- Returns:
- Nothing - this methods always throws.
- Throws:
NotImplementedError- when this methods is called- See Also:
-
TODO
A temporary replacement for an implementations used during prototyping.Example:
public HttpResponse getResponse(HttpRequest request) { return TODO("fake response"); } final HttpResponse response = getHttpResponse(TODO("fake request"));- Type Parameters:
T- The result type of the missing implementation.- Parameters:
msg- An error message- Returns:
- Nothing - this methods always throws.
- Throws:
NotImplementedError- when this methods is called- See Also:
-
print
Shortcut forSystem.out.print(obj). SeePrintStream.print(Object).- Parameters:
obj- The>Objectto be printed
-
printf
Shortcut forSystem.out.printf(format, args). SeePrintStream.printf(String, Object...).- Parameters:
format- A format string as described inFormatter.args- Arguments referenced by the format specifiers
-
println
Shortcut forSystem.out.println(obj). SeePrintStream.println(Object).- Parameters:
obj- TheObjectto be printed
-
println
public static void println()Shortcut forSystem.out.println(). SeePrintStream.println(). -
Function
Alias forFunction0.of(Function0)- Type Parameters:
R- return type- Parameters:
methodReference- A method reference- Returns:
- A
Function0
-
Function
Alias forFunction1.of(Function1)- Type Parameters:
T1- type of the 1st argumentR- return type- Parameters:
methodReference- A method reference- Returns:
- A
Function1
-
Function
Alias forFunction2.of(Function2)- Type Parameters:
T1- type of the 1st argumentT2- type of the 2nd argumentR- return type- Parameters:
methodReference- A method reference- Returns:
- A
Function2
-
Function
Alias forFunction3.of(Function3)- Type Parameters:
T1- type of the 1st argumentT2- type of the 2nd argumentT3- type of the 3rd argumentR- return type- Parameters:
methodReference- A method reference- Returns:
- A
Function3
-
Function
public static <T1,T2, Function4<T1,T3, T4, R> T2, FunctionT3, T4, R> (Function4<T1, T2, T3, T4, R> methodReference) Alias forFunction4.of(Function4)- Type Parameters:
T1- type of the 1st argumentT2- type of the 2nd argumentT3- type of the 3rd argumentT4- type of the 4th argumentR- return type- Parameters:
methodReference- A method reference- Returns:
- A
Function4
-
Function
public static <T1,T2, Function5<T1,T3, T4, T5, R> T2, FunctionT3, T4, T5, R> (Function5<T1, T2, T3, T4, T5, R> methodReference) Alias forFunction5.of(Function5)- Type Parameters:
T1- type of the 1st argumentT2- type of the 2nd argumentT3- type of the 3rd argumentT4- type of the 4th argumentT5- type of the 5th argumentR- return type- Parameters:
methodReference- A method reference- Returns:
- A
Function5
-
Function
public static <T1,T2, Function6<T1,T3, T4, T5, T6, R> T2, FunctionT3, T4, T5, T6, R> (Function6<T1, T2, T3, T4, T5, T6, R> methodReference) Alias forFunction6.of(Function6)- Type Parameters:
T1- type of the 1st argumentT2- type of the 2nd argumentT3- type of the 3rd argumentT4- type of the 4th argumentT5- type of the 5th argumentT6- type of the 6th argumentR- return type- Parameters:
methodReference- A method reference- Returns:
- A
Function6
-
Function
public static <T1,T2, Function7<T1,T3, T4, T5, T6, T7, R> T2, FunctionT3, T4, T5, T6, T7, R> (Function7<T1, T2, T3, T4, T5, T6, T7, R> methodReference) Alias forFunction7.of(Function7)- Type Parameters:
T1- type of the 1st argumentT2- type of the 2nd argumentT3- type of the 3rd argumentT4- type of the 4th argumentT5- type of the 5th argumentT6- type of the 6th argumentT7- type of the 7th argumentR- return type- Parameters:
methodReference- A method reference- Returns:
- A
Function7
-
Function
public static <T1,T2, Function8<T1,T3, T4, T5, T6, T7, T8, R> T2, FunctionT3, T4, T5, T6, T7, T8, R> (Function8<T1, T2, T3, T4, T5, T6, T7, T8, R> methodReference) Alias forFunction8.of(Function8)- Type Parameters:
T1- type of the 1st argumentT2- type of the 2nd argumentT3- type of the 3rd argumentT4- type of the 4th argumentT5- type of the 5th argumentT6- type of the 6th argumentT7- type of the 7th argumentT8- type of the 8th argumentR- return type- Parameters:
methodReference- A method reference- Returns:
- A
Function8
-
CheckedFunction
Alias forCheckedFunction0.of(CheckedFunction0)- Type Parameters:
R- return type- Parameters:
methodReference- A method reference- Returns:
- A
CheckedFunction0
-
CheckedFunction
public static <T1,R> CheckedFunction1<T1,R> CheckedFunction(CheckedFunction1<T1, R> methodReference) Alias forCheckedFunction1.of(CheckedFunction1)- Type Parameters:
T1- type of the 1st argumentR- return type- Parameters:
methodReference- A method reference- Returns:
- A
CheckedFunction1
-
CheckedFunction
public static <T1,T2, CheckedFunction2<T1,R> T2, CheckedFunctionR> (CheckedFunction2<T1, T2, R> methodReference) Alias forCheckedFunction2.of(CheckedFunction2)- Type Parameters:
T1- type of the 1st argumentT2- type of the 2nd argumentR- return type- Parameters:
methodReference- A method reference- Returns:
- A
CheckedFunction2
-
CheckedFunction
public static <T1,T2, CheckedFunction3<T1,T3, R> T2, CheckedFunctionT3, R> (CheckedFunction3<T1, T2, T3, R> methodReference) Alias forCheckedFunction3.of(CheckedFunction3)- Type Parameters:
T1- type of the 1st argumentT2- type of the 2nd argumentT3- type of the 3rd argumentR- return type- Parameters:
methodReference- A method reference- Returns:
- A
CheckedFunction3
-
CheckedFunction
public static <T1,T2, CheckedFunction4<T1,T3, T4, R> T2, CheckedFunctionT3, T4, R> (CheckedFunction4<T1, T2, T3, T4, R> methodReference) Alias forCheckedFunction4.of(CheckedFunction4)- Type Parameters:
T1- type of the 1st argumentT2- type of the 2nd argumentT3- type of the 3rd argumentT4- type of the 4th argumentR- return type- Parameters:
methodReference- A method reference- Returns:
- A
CheckedFunction4
-
CheckedFunction
public static <T1,T2, CheckedFunction5<T1,T3, T4, T5, R> T2, CheckedFunctionT3, T4, T5, R> (CheckedFunction5<T1, T2, T3, T4, T5, R> methodReference) Alias forCheckedFunction5.of(CheckedFunction5)- Type Parameters:
T1- type of the 1st argumentT2- type of the 2nd argumentT3- type of the 3rd argumentT4- type of the 4th argumentT5- type of the 5th argumentR- return type- Parameters:
methodReference- A method reference- Returns:
- A
CheckedFunction5
-
CheckedFunction
public static <T1,T2, CheckedFunction6<T1,T3, T4, T5, T6, R> T2, CheckedFunctionT3, T4, T5, T6, R> (CheckedFunction6<T1, T2, T3, T4, T5, T6, R> methodReference) Alias forCheckedFunction6.of(CheckedFunction6)- Type Parameters:
T1- type of the 1st argumentT2- type of the 2nd argumentT3- type of the 3rd argumentT4- type of the 4th argumentT5- type of the 5th argumentT6- type of the 6th argumentR- return type- Parameters:
methodReference- A method reference- Returns:
- A
CheckedFunction6
-
CheckedFunction
public static <T1,T2, CheckedFunction7<T1,T3, T4, T5, T6, T7, R> T2, CheckedFunctionT3, T4, T5, T6, T7, R> (CheckedFunction7<T1, T2, T3, T4, T5, T6, T7, R> methodReference) Alias forCheckedFunction7.of(CheckedFunction7)- Type Parameters:
T1- type of the 1st argumentT2- type of the 2nd argumentT3- type of the 3rd argumentT4- type of the 4th argumentT5- type of the 5th argumentT6- type of the 6th argumentT7- type of the 7th argumentR- return type- Parameters:
methodReference- A method reference- Returns:
- A
CheckedFunction7
-
CheckedFunction
public static <T1,T2, CheckedFunction8<T1,T3, T4, T5, T6, T7, T8, R> T2, CheckedFunctionT3, T4, T5, T6, T7, T8, R> (CheckedFunction8<T1, T2, T3, T4, T5, T6, T7, T8, R> methodReference) Alias forCheckedFunction8.of(CheckedFunction8)- Type Parameters:
T1- type of the 1st argumentT2- type of the 2nd argumentT3- type of the 3rd argumentT4- type of the 4th argumentT5- type of the 5th argumentT6- type of the 6th argumentT7- type of the 7th argumentT8- type of the 8th argumentR- return type- Parameters:
methodReference- A method reference- Returns:
- A
CheckedFunction8
-
unchecked
Alias forCheckedFunction0.unchecked()- Type Parameters:
R- return type- Parameters:
f- A method reference- Returns:
- An unchecked wrapper of supplied
CheckedFunction0
-
unchecked
Alias forCheckedFunction1.unchecked()- Type Parameters:
T1- type of the 1st argumentR- return type- Parameters:
f- A method reference- Returns:
- An unchecked wrapper of supplied
CheckedFunction1
-
unchecked
Alias forCheckedFunction2.unchecked()- Type Parameters:
T1- type of the 1st argumentT2- type of the 2nd argumentR- return type- Parameters:
f- A method reference- Returns:
- An unchecked wrapper of supplied
CheckedFunction2
-
unchecked
Alias forCheckedFunction3.unchecked()- Type Parameters:
T1- type of the 1st argumentT2- type of the 2nd argumentT3- type of the 3rd argumentR- return type- Parameters:
f- A method reference- Returns:
- An unchecked wrapper of supplied
CheckedFunction3
-
unchecked
public static <T1,T2, Function4<T1,T3, T4, R> T2, uncheckedT3, T4, R> (CheckedFunction4<T1, T2, T3, T4, R> f) Alias forCheckedFunction4.unchecked()- Type Parameters:
T1- type of the 1st argumentT2- type of the 2nd argumentT3- type of the 3rd argumentT4- type of the 4th argumentR- return type- Parameters:
f- A method reference- Returns:
- An unchecked wrapper of supplied
CheckedFunction4
-
unchecked
public static <T1,T2, Function5<T1,T3, T4, T5, R> T2, uncheckedT3, T4, T5, R> (CheckedFunction5<T1, T2, T3, T4, T5, R> f) Alias forCheckedFunction5.unchecked()- Type Parameters:
T1- type of the 1st argumentT2- type of the 2nd argumentT3- type of the 3rd argumentT4- type of the 4th argumentT5- type of the 5th argumentR- return type- Parameters:
f- A method reference- Returns:
- An unchecked wrapper of supplied
CheckedFunction5
-
unchecked
public static <T1,T2, Function6<T1,T3, T4, T5, T6, R> T2, uncheckedT3, T4, T5, T6, R> (CheckedFunction6<T1, T2, T3, T4, T5, T6, R> f) Alias forCheckedFunction6.unchecked()- Type Parameters:
T1- type of the 1st argumentT2- type of the 2nd argumentT3- type of the 3rd argumentT4- type of the 4th argumentT5- type of the 5th argumentT6- type of the 6th argumentR- return type- Parameters:
f- A method reference- Returns:
- An unchecked wrapper of supplied
CheckedFunction6
-
unchecked
public static <T1,T2, Function7<T1,T3, T4, T5, T6, T7, R> T2, uncheckedT3, T4, T5, T6, T7, R> (CheckedFunction7<T1, T2, T3, T4, T5, T6, T7, R> f) Alias forCheckedFunction7.unchecked()- Type Parameters:
T1- type of the 1st argumentT2- type of the 2nd argumentT3- type of the 3rd argumentT4- type of the 4th argumentT5- type of the 5th argumentT6- type of the 6th argumentT7- type of the 7th argumentR- return type- Parameters:
f- A method reference- Returns:
- An unchecked wrapper of supplied
CheckedFunction7
-
unchecked
public static <T1,T2, Function8<T1,T3, T4, T5, T6, T7, T8, R> T2, uncheckedT3, T4, T5, T6, T7, T8, R> (CheckedFunction8<T1, T2, T3, T4, T5, T6, T7, T8, R> f) Alias forCheckedFunction8.unchecked()- Type Parameters:
T1- type of the 1st argumentT2- type of the 2nd argumentT3- type of the 3rd argumentT4- type of the 4th argumentT5- type of the 5th argumentT6- type of the 6th argumentT7- type of the 7th argumentT8- type of the 8th argumentR- return type- Parameters:
f- A method reference- Returns:
- An unchecked wrapper of supplied
CheckedFunction8
-
Tuple
Alias forTuple.empty()- Returns:
- the empty tuple.
-
Tuple
Alias forTuple.of(Object)Creates a tuple of one element.- Type Parameters:
T1- type of the 1st element- Parameters:
t1- the 1st element- Returns:
- a tuple of one element.
-
Tuple
Alias forTuple.of(Object, Object)Creates a tuple of two elements.- Type Parameters:
T1- type of the 1st elementT2- type of the 2nd element- Parameters:
t1- the 1st elementt2- the 2nd element- Returns:
- a tuple of two elements.
-
Tuple
Alias forTuple.of(Object, Object, Object)Creates a tuple of three elements.- Type Parameters:
T1- type of the 1st elementT2- type of the 2nd elementT3- type of the 3rd element- Parameters:
t1- the 1st elementt2- the 2nd elementt3- the 3rd element- Returns:
- a tuple of three elements.
-
Tuple
Alias forTuple.of(Object, Object, Object, Object)Creates a tuple of 4 elements.- Type Parameters:
T1- type of the 1st elementT2- type of the 2nd elementT3- type of the 3rd elementT4- type of the 4th element- Parameters:
t1- the 1st elementt2- the 2nd elementt3- the 3rd elementt4- the 4th element- Returns:
- a tuple of 4 elements.
-
Tuple
Alias forTuple.of(Object, Object, Object, Object, Object)Creates a tuple of 5 elements.- Type Parameters:
T1- type of the 1st elementT2- type of the 2nd elementT3- type of the 3rd elementT4- type of the 4th elementT5- type of the 5th element- Parameters:
t1- the 1st elementt2- the 2nd elementt3- the 3rd elementt4- the 4th elementt5- the 5th element- Returns:
- a tuple of 5 elements.
-
Tuple
public static <T1,T2, Tuple6<T1,T3, T4, T5, T6> T2, TupleT3, T4, T5, T6> (T1 t1, T2 t2, T3 t3, T4 t4, T5 t5, T6 t6) Alias forTuple.of(Object, Object, Object, Object, Object, Object)Creates a tuple of 6 elements.- Type Parameters:
T1- type of the 1st elementT2- type of the 2nd elementT3- type of the 3rd elementT4- type of the 4th elementT5- type of the 5th elementT6- type of the 6th element- Parameters:
t1- the 1st elementt2- the 2nd elementt3- the 3rd elementt4- the 4th elementt5- the 5th elementt6- the 6th element- Returns:
- a tuple of 6 elements.
-
Tuple
public static <T1,T2, Tuple7<T1,T3, T4, T5, T6, T7> T2, TupleT3, T4, T5, T6, T7> (T1 t1, T2 t2, T3 t3, T4 t4, T5 t5, T6 t6, T7 t7) Alias forTuple.of(Object, Object, Object, Object, Object, Object, Object)Creates a tuple of 7 elements.- Type Parameters:
T1- type of the 1st elementT2- type of the 2nd elementT3- type of the 3rd elementT4- type of the 4th elementT5- type of the 5th elementT6- type of the 6th elementT7- type of the 7th element- Parameters:
t1- the 1st elementt2- the 2nd elementt3- the 3rd elementt4- the 4th elementt5- the 5th elementt6- the 6th elementt7- the 7th element- Returns:
- a tuple of 7 elements.
-
Tuple
public static <T1,T2, Tuple8<T1,T3, T4, T5, T6, T7, T8> T2, TupleT3, T4, T5, T6, T7, T8> (T1 t1, T2 t2, T3 t3, T4 t4, T5 t5, T6 t6, T7 t7, T8 t8) Alias forTuple.of(Object, Object, Object, Object, Object, Object, Object, Object)Creates a tuple of 8 elements.- Type Parameters:
T1- type of the 1st elementT2- type of the 2nd elementT3- type of the 3rd elementT4- type of the 4th elementT5- type of the 5th elementT6- type of the 6th elementT7- type of the 7th elementT8- type of the 8th element- Parameters:
t1- the 1st elementt2- the 2nd elementt3- the 3rd elementt4- the 4th elementt5- the 5th elementt6- the 6th elementt7- the 7th elementt8- the 8th element- Returns:
- a tuple of 8 elements.
-
Right
Alias forEither.right(Object)- Type Parameters:
L- Type of left value.R- Type of right value.- Parameters:
right- The value.- Returns:
- A new
Either.Rightinstance.
-
Left
Alias forEither.left(Object)- Type Parameters:
L- Type of left value.R- Type of right value.- Parameters:
left- The value.- Returns:
- A new
Either.Leftinstance.
-
Future
Alias forFuture.of(CheckedFunction0)- Type Parameters:
T- Type of the computation result.- Parameters:
computation- A computation.- Returns:
- A new
Futureinstance. - Throws:
NullPointerException- if computation is null.
-
Future
public static <T> Future<T> Future(Executor executorService, CheckedFunction0<? extends T> computation) Alias forFuture.of(Executor, CheckedFunction0)- Type Parameters:
T- Type of the computation result.- Parameters:
executorService- An executor service.computation- A computation.- Returns:
- A new
Futureinstance. - Throws:
NullPointerException- if one of executorService or computation is null.
-
Future
Alias forFuture.successful(Object)- Type Parameters:
T- The value type of a successful result.- Parameters:
result- The result.- Returns:
- A succeeded
Future.
-
Future
Alias forFuture.successful(Executor, Object)- Type Parameters:
T- The value type of a successful result.- Parameters:
executorService- AnExecutorService.result- The result.- Returns:
- A succeeded
Future. - Throws:
NullPointerException- if executorService is null
-
Lazy
Alias forLazy.of(Supplier)- Type Parameters:
T- type of the lazy value- Parameters:
supplier- A supplier- Returns:
- A new instance of
Lazy
-
Option
Alias forOption.of(Object)- Type Parameters:
T- type of the value- Parameters:
value- A value- Returns:
Option.Someif value is notnull,Option.Noneotherwise
-
Some
Alias forOption.some(Object)- Type Parameters:
T- type of the value- Parameters:
value- A value- Returns:
Option.Some
-
None
Alias forOption.none()- Type Parameters:
T- component type- Returns:
- the singleton instance of
Option.None
-
Try
Alias forTry.of(CheckedFunction0)- Type Parameters:
T- Component type- Parameters:
supplier- A checked supplier- Returns:
Try.Successif no exception occurs, otherwiseTry.Failureif an exception occurs callingsupplier.get().
-
Success
Alias forTry.success(Object)- Type Parameters:
T- Type of the givenvalue.- Parameters:
value- A value.- Returns:
- A new
Try.Success.
-
Failure
Alias forTry.failure(Throwable)- Type Parameters:
T- Component type of theTry.- Parameters:
exception- An exception.- Returns:
- A new
Try.Failure.
-
Valid
Alias forValidation.valid(Object)- Type Parameters:
E- type of the errorT- type of the givenvalue- Parameters:
value- A value- Returns:
Validation.Valid- Throws:
NullPointerException- if value is null
-
Invalid
Alias forValidation.invalid(Object)- Type Parameters:
E- type of the givenerrorT- type of the value- Parameters:
error- An error- Returns:
Validation.Invalid- Throws:
NullPointerException- if error is null
-
CharSeq
Alias forCharSeq.of(char)- Parameters:
character- A character.- Returns:
- A new
CharSeqinstance containing the given element
-
CharSeq
Alias forCharSeq.of(char...)- Parameters:
characters- Zero or more characters.- Returns:
- A new
CharSeqinstance containing the given characters in the same order. - Throws:
NullPointerException- ifelementsis null
-
CharSeq
Alias forCharSeq.of(CharSequence)- Parameters:
sequence-CharSequenceinstance.- Returns:
- A new
CharSeqinstance
-
PriorityQueue
Alias forPriorityQueue.empty()- Type Parameters:
T- Component type of element.- Returns:
- A new
PriorityQueueempty instance
-
PriorityQueue
public static <T extends Comparable<? super T>> PriorityQueue<T> PriorityQueue(@NonNull Comparator<? super T> comparator) Alias forPriorityQueue.empty(Comparator)- Type Parameters:
T- Component type of element.- Parameters:
comparator- The comparator used to sort the elements- Returns:
- A new
PriorityQueueempty instance
-
PriorityQueue
Alias forPriorityQueue.of(Comparable)- Type Parameters:
T- Component type of element.- Parameters:
element- An element.- Returns:
- A new
PriorityQueueinstance containing the given element
-
PriorityQueue
Alias forPriorityQueue.of(Comparator, Object)- Type Parameters:
T- Component type of element.- Parameters:
comparator- The comparator used to sort the elementselement- An element.- Returns:
- A new
PriorityQueueinstance containing the given element
-
PriorityQueue
@SafeVarargs public static <T extends Comparable<? super T>> PriorityQueue<T> PriorityQueue(T @NonNull ... elements) Alias forPriorityQueue.of(Comparable...)- Type Parameters:
T- Component type of element.- Parameters:
elements- Zero or more elements.- Returns:
- A new
PriorityQueueinstance containing the given elements
-
PriorityQueue
@SafeVarargs public static <T> PriorityQueue<T> PriorityQueue(@NonNull Comparator<? super T> comparator, T @NonNull ... elements) Alias forPriorityQueue.of(Comparator, Object...)- Type Parameters:
T- Component type of element.- Parameters:
comparator- The comparator used to sort the elementselements- Zero or more elements.- Returns:
- A new
PriorityQueueinstance containing the given elements
-
Seq
Alias forList.empty()- Type Parameters:
T- Component type of element.- Returns:
- A singleton instance of empty
List
-
Seq
Alias forList.of(Object)- Type Parameters:
T- Component type of element.- Parameters:
element- An element.- Returns:
- A new
Listinstance containing the given element
-
Seq
Alias forList.of(Object...)- Type Parameters:
T- Component type of elements.- Parameters:
elements- Zero or more elements.- Returns:
- A new
Listinstance containing the given elements - Throws:
NullPointerException- ifelementsis null
-
IndexedSeq
Alias forVector.empty()- Type Parameters:
T- Component type of element.- Returns:
- A singleton instance of empty
Vector
-
IndexedSeq
Alias forVector.of(Object)- Type Parameters:
T- Component type of element.- Parameters:
element- An element.- Returns:
- A new
Vectorinstance containing the given element
-
IndexedSeq
Alias forVector.of(Object...)- Type Parameters:
T- Component type of elements.- Parameters:
elements- Zero or more elements.- Returns:
- A new
Vectorinstance containing the given elements - Throws:
NullPointerException- ifelementsis null
-
Array
Alias forArray.empty()- Type Parameters:
T- Component type of element.- Returns:
- A singleton instance of empty
Array
-
Array
Alias forArray.of(Object)- Type Parameters:
T- Component type of element.- Parameters:
element- An element.- Returns:
- A new
Arrayinstance containing the given element
-
Array
Alias forArray.of(Object...)- Type Parameters:
T- Component type of elements.- Parameters:
elements- Zero or more elements.- Returns:
- A new
Arrayinstance containing the given elements - Throws:
NullPointerException- ifelementsis null
-
List
Alias forList.empty()- Type Parameters:
T- Component type of element.- Returns:
- A singleton instance of empty
List
-
List
Alias forList.of(Object)- Type Parameters:
T- Component type of element.- Parameters:
element- An element.- Returns:
- A new
Listinstance containing the given element
-
List
Alias forList.of(Object...)- Type Parameters:
T- Component type of elements.- Parameters:
elements- Zero or more elements.- Returns:
- A new
Listinstance containing the given elements - Throws:
NullPointerException- ifelementsis null
-
Queue
Alias forQueue.empty()- Type Parameters:
T- Component type of element.- Returns:
- A singleton instance of empty
Queue
-
Queue
Alias forQueue.of(Object)- Type Parameters:
T- Component type of element.- Parameters:
element- An element.- Returns:
- A new
Queueinstance containing the given element
-
Queue
Alias forQueue.of(Object...)- Type Parameters:
T- Component type of elements.- Parameters:
elements- Zero or more elements.- Returns:
- A new
Queueinstance containing the given elements - Throws:
NullPointerException- ifelementsis null
-
Stream
Alias forStream.empty()- Type Parameters:
T- Component type of element.- Returns:
- A singleton instance of empty
Stream
-
Stream
Alias forStream.of(Object)- Type Parameters:
T- Component type of element.- Parameters:
element- An element.- Returns:
- A new
Streaminstance containing the given element
-
Stream
Alias forStream.of(Object...)- Type Parameters:
T- Component type of elements.- Parameters:
elements- Zero or more elements.- Returns:
- A new
Streaminstance containing the given elements - Throws:
NullPointerException- ifelementsis null
-
Vector
Alias forVector.empty()- Type Parameters:
T- Component type of element.- Returns:
- A singleton instance of empty
Vector
-
Vector
Alias forVector.of(Object)- Type Parameters:
T- Component type of element.- Parameters:
element- An element.- Returns:
- A new
Vectorinstance containing the given element
-
Vector
Alias forVector.of(Object...)- Type Parameters:
T- Component type of elements.- Parameters:
elements- Zero or more elements.- Returns:
- A new
Vectorinstance containing the given elements - Throws:
NullPointerException- ifelementsis null
-
Set
Alias forHashSet.empty()- Type Parameters:
T- Component type of element.- Returns:
- A singleton instance of empty
HashSet
-
Set
Alias forHashSet.of(Object)- Type Parameters:
T- Component type of element.- Parameters:
element- An element.- Returns:
- A new
HashSetinstance containing the given element
-
Set
Alias forHashSet.of(Object...)- Type Parameters:
T- Component type of elements.- Parameters:
elements- Zero or more elements.- Returns:
- A new
HashSetinstance containing the given elements - Throws:
NullPointerException- ifelementsis null
-
LinkedSet
Alias forLinkedHashSet.empty()- Type Parameters:
T- Component type of element.- Returns:
- A singleton instance of empty
LinkedHashSet
-
LinkedSet
Alias forLinkedHashSet.of(Object)- Type Parameters:
T- Component type of element.- Parameters:
element- An element.- Returns:
- A new
LinkedHashSetinstance containing the given element
-
LinkedSet
Alias forLinkedHashSet.of(Object...)- Type Parameters:
T- Component type of elements.- Parameters:
elements- Zero or more elements.- Returns:
- A new
LinkedHashSetinstance containing the given elements - Throws:
NullPointerException- ifelementsis null
-
SortedSet
Alias forTreeSet.empty()- Type Parameters:
T- Component type of element.- Returns:
- A new
TreeSetempty instance
-
SortedSet
public static <T extends Comparable<? super T>> SortedSet<T> SortedSet(@NonNull Comparator<? super T> comparator) Alias forTreeSet.empty(Comparator)- Type Parameters:
T- Component type of element.- Parameters:
comparator- The comparator used to sort the elements- Returns:
- A new
TreeSetempty instance
-
SortedSet
Alias forTreeSet.of(Comparable)- Type Parameters:
T- Component type of element.- Parameters:
element- An element.- Returns:
- A new
TreeSetinstance containing the given element
-
SortedSet
Alias forTreeSet.of(Comparator, Object)- Type Parameters:
T- Component type of element.- Parameters:
comparator- The comparator used to sort the elementselement- An element.- Returns:
- A new
TreeSetinstance containing the given element
-
SortedSet
@SafeVarargs public static <T extends Comparable<? super T>> SortedSet<T> SortedSet(T @NonNull ... elements) Alias forTreeSet.of(Comparable...)- Type Parameters:
T- Component type of element.- Parameters:
elements- Zero or more elements.- Returns:
- A new
TreeSetinstance containing the given elements
-
SortedSet
@SafeVarargs public static <T> SortedSet<T> SortedSet(@NonNull Comparator<? super T> comparator, T @NonNull ... elements) Alias forTreeSet.of(Comparator, Object...)- Type Parameters:
T- Component type of element.- Parameters:
comparator- The comparator used to sort the elementselements- Zero or more elements.- Returns:
- A new
TreeSetinstance containing the given elements
-
Map
Alias forHashMap.empty()- Type Parameters:
K- The key type.V- The value type.- Returns:
- A singleton instance of empty
HashMap
-
Map
@Deprecated @SafeVarargs public static <K,V> Map<K,V> Map(Tuple2<? extends K, ? extends V> @NonNull ... entries) Deprecated.Will be removed in a future version.Alias forHashMap.ofEntries(Tuple2...)- Type Parameters:
K- The key type.V- The value type.- Parameters:
entries- Map entries.- Returns:
- A new
HashMapinstance containing the given entries
-
Map
Alias forHashMap.of(Object, Object)- Type Parameters:
K- The key type.V- The value type.- Parameters:
k1- The keyv1- The value- Returns:
- A new
HashMapinstance containing the given entries
-
Map
- Type Parameters:
K- The key type.V- The value type.- Parameters:
k1- The key of the 1st pairv1- The value of the 1st pairk2- The key of the 2nd pairv2- The value of the 2nd pair- Returns:
- A new
HashMapinstance containing the given entries
-
Map
- Type Parameters:
K- The key type.V- The value type.- Parameters:
k1- The key of the 1st pairv1- The value of the 1st pairk2- The key of the 2nd pairv2- The value of the 2nd pairk3- The key of the 3rd pairv3- The value of the 3rd pair- Returns:
- A new
HashMapinstance containing the given entries
-
Map
- Type Parameters:
K- The key type.V- The value type.- Parameters:
k1- The key of the 1st pairv1- The value of the 1st pairk2- The key of the 2nd pairv2- The value of the 2nd pairk3- The key of the 3rd pairv3- The value of the 3rd pairk4- The key of the 4th pairv4- The value of the 4th pair- Returns:
- A new
HashMapinstance containing the given entries
-
Map
Alias forHashMap.of(Object, Object, Object, Object, Object, Object, Object, Object, Object, Object)- Type Parameters:
K- The key type.V- The value type.- Parameters:
k1- The key of the 1st pairv1- The value of the 1st pairk2- The key of the 2nd pairv2- The value of the 2nd pairk3- The key of the 3rd pairv3- The value of the 3rd pairk4- The key of the 4th pairv4- The value of the 4th pairk5- The key of the 5th pairv5- The value of the 5th pair- Returns:
- A new
HashMapinstance containing the given entries
-
Map
public static <K,V> Map<K,V> Map(K k1, V v1, K k2, V v2, K k3, V v3, K k4, V v4, K k5, V v5, K k6, V v6) - Type Parameters:
K- The key type.V- The value type.- Parameters:
k1- The key of the 1st pairv1- The value of the 1st pairk2- The key of the 2nd pairv2- The value of the 2nd pairk3- The key of the 3rd pairv3- The value of the 3rd pairk4- The key of the 4th pairv4- The value of the 4th pairk5- The key of the 5th pairv5- The value of the 5th pairk6- The key of the 6th pairv6- The value of the 6th pair- Returns:
- A new
HashMapinstance containing the given entries
-
Map
public static <K,V> Map<K,V> Map(K k1, V v1, K k2, V v2, K k3, V v3, K k4, V v4, K k5, V v5, K k6, V v6, K k7, V v7) - Type Parameters:
K- The key type.V- The value type.- Parameters:
k1- The key of the 1st pairv1- The value of the 1st pairk2- The key of the 2nd pairv2- The value of the 2nd pairk3- The key of the 3rd pairv3- The value of the 3rd pairk4- The key of the 4th pairv4- The value of the 4th pairk5- The key of the 5th pairv5- The value of the 5th pairk6- The key of the 6th pairv6- The value of the 6th pairk7- The key of the 7th pairv7- The value of the 7th pair- Returns:
- A new
HashMapinstance containing the given entries
-
Map
public static <K,V> Map<K,V> Map(K k1, V v1, K k2, V v2, K k3, V v3, K k4, V v4, K k5, V v5, K k6, V v6, K k7, V v7, K k8, V v8) - Type Parameters:
K- The key type.V- The value type.- Parameters:
k1- The key of the 1st pairv1- The value of the 1st pairk2- The key of the 2nd pairv2- The value of the 2nd pairk3- The key of the 3rd pairv3- The value of the 3rd pairk4- The key of the 4th pairv4- The value of the 4th pairk5- The key of the 5th pairv5- The value of the 5th pairk6- The key of the 6th pairv6- The value of the 6th pairk7- The key of the 7th pairv7- The value of the 7th pairk8- The key of the 8th pairv8- The value of the 8th pair- Returns:
- A new
HashMapinstance containing the given entries
-
Map
public static <K,V> Map<K,V> Map(K k1, V v1, K k2, V v2, K k3, V v3, K k4, V v4, K k5, V v5, K k6, V v6, K k7, V v7, K k8, V v8, K k9, V v9) - Type Parameters:
K- The key type.V- The value type.- Parameters:
k1- The key of the 1st pairv1- The value of the 1st pairk2- The key of the 2nd pairv2- The value of the 2nd pairk3- The key of the 3rd pairv3- The value of the 3rd pairk4- The key of the 4th pairv4- The value of the 4th pairk5- The key of the 5th pairv5- The value of the 5th pairk6- The key of the 6th pairv6- The value of the 6th pairk7- The key of the 7th pairv7- The value of the 7th pairk8- The key of the 8th pairv8- The value of the 8th pairk9- The key of the 9th pairv9- The value of the 9th pair- Returns:
- A new
HashMapinstance containing the given entries
-
Map
public static <K,V> Map<K,V> Map(K k1, V v1, K k2, V v2, K k3, V v3, K k4, V v4, K k5, V v5, K k6, V v6, K k7, V v7, K k8, V v8, K k9, V v9, K k10, V v10) - Type Parameters:
K- The key type.V- The value type.- Parameters:
k1- The key of the 1st pairv1- The value of the 1st pairk2- The key of the 2nd pairv2- The value of the 2nd pairk3- The key of the 3rd pairv3- The value of the 3rd pairk4- The key of the 4th pairv4- The value of the 4th pairk5- The key of the 5th pairv5- The value of the 5th pairk6- The key of the 6th pairv6- The value of the 6th pairk7- The key of the 7th pairv7- The value of the 7th pairk8- The key of the 8th pairv8- The value of the 8th pairk9- The key of the 9th pairv9- The value of the 9th pairk10- The key of the 10th pairv10- The value of the 10th pair- Returns:
- A new
HashMapinstance containing the given entries
-
LinkedMap
Alias forLinkedHashMap.empty()- Type Parameters:
K- The key type.V- The value type.- Returns:
- A singleton instance of empty
LinkedHashMap
-
LinkedMap
@Deprecated @SafeVarargs public static <K,V> Map<K,V> LinkedMap(Tuple2<? extends K, ? extends V> @NonNull ... entries) Deprecated.Will be removed in a future version.Alias forLinkedHashMap.ofEntries(Tuple2...)- Type Parameters:
K- The key type.V- The value type.- Parameters:
entries- Map entries.- Returns:
- A new
LinkedHashMapinstance containing the given entries
-
LinkedMap
Alias forLinkedHashMap.of(Object, Object)- Type Parameters:
K- The key type.V- The value type.- Parameters:
k1- The keyv1- The value- Returns:
- A new
LinkedHashMapinstance containing the given entries
-
LinkedMap
- Type Parameters:
K- The key type.V- The value type.- Parameters:
k1- The key of the 1st pairv1- The value of the 1st pairk2- The key of the 2nd pairv2- The value of the 2nd pair- Returns:
- A new
LinkedHashMapinstance containing the given entries
-
LinkedMap
- Type Parameters:
K- The key type.V- The value type.- Parameters:
k1- The key of the 1st pairv1- The value of the 1st pairk2- The key of the 2nd pairv2- The value of the 2nd pairk3- The key of the 3rd pairv3- The value of the 3rd pair- Returns:
- A new
LinkedHashMapinstance containing the given entries
-
LinkedMap
- Type Parameters:
K- The key type.V- The value type.- Parameters:
k1- The key of the 1st pairv1- The value of the 1st pairk2- The key of the 2nd pairv2- The value of the 2nd pairk3- The key of the 3rd pairv3- The value of the 3rd pairk4- The key of the 4th pairv4- The value of the 4th pair- Returns:
- A new
LinkedHashMapinstance containing the given entries
-
LinkedMap
Alias forLinkedHashMap.of(Object, Object, Object, Object, Object, Object, Object, Object, Object, Object)- Type Parameters:
K- The key type.V- The value type.- Parameters:
k1- The key of the 1st pairv1- The value of the 1st pairk2- The key of the 2nd pairv2- The value of the 2nd pairk3- The key of the 3rd pairv3- The value of the 3rd pairk4- The key of the 4th pairv4- The value of the 4th pairk5- The key of the 5th pairv5- The value of the 5th pair- Returns:
- A new
LinkedHashMapinstance containing the given entries
-
LinkedMap
public static <K,V> Map<K,V> LinkedMap(K k1, V v1, K k2, V v2, K k3, V v3, K k4, V v4, K k5, V v5, K k6, V v6) - Type Parameters:
K- The key type.V- The value type.- Parameters:
k1- The key of the 1st pairv1- The value of the 1st pairk2- The key of the 2nd pairv2- The value of the 2nd pairk3- The key of the 3rd pairv3- The value of the 3rd pairk4- The key of the 4th pairv4- The value of the 4th pairk5- The key of the 5th pairv5- The value of the 5th pairk6- The key of the 6th pairv6- The value of the 6th pair- Returns:
- A new
LinkedHashMapinstance containing the given entries
-
LinkedMap
public static <K,V> Map<K,V> LinkedMap(K k1, V v1, K k2, V v2, K k3, V v3, K k4, V v4, K k5, V v5, K k6, V v6, K k7, V v7) - Type Parameters:
K- The key type.V- The value type.- Parameters:
k1- The key of the 1st pairv1- The value of the 1st pairk2- The key of the 2nd pairv2- The value of the 2nd pairk3- The key of the 3rd pairv3- The value of the 3rd pairk4- The key of the 4th pairv4- The value of the 4th pairk5- The key of the 5th pairv5- The value of the 5th pairk6- The key of the 6th pairv6- The value of the 6th pairk7- The key of the 7th pairv7- The value of the 7th pair- Returns:
- A new
LinkedHashMapinstance containing the given entries
-
LinkedMap
public static <K,V> Map<K,V> LinkedMap(K k1, V v1, K k2, V v2, K k3, V v3, K k4, V v4, K k5, V v5, K k6, V v6, K k7, V v7, K k8, V v8) - Type Parameters:
K- The key type.V- The value type.- Parameters:
k1- The key of the 1st pairv1- The value of the 1st pairk2- The key of the 2nd pairv2- The value of the 2nd pairk3- The key of the 3rd pairv3- The value of the 3rd pairk4- The key of the 4th pairv4- The value of the 4th pairk5- The key of the 5th pairv5- The value of the 5th pairk6- The key of the 6th pairv6- The value of the 6th pairk7- The key of the 7th pairv7- The value of the 7th pairk8- The key of the 8th pairv8- The value of the 8th pair- Returns:
- A new
LinkedHashMapinstance containing the given entries
-
LinkedMap
public static <K,V> Map<K,V> LinkedMap(K k1, V v1, K k2, V v2, K k3, V v3, K k4, V v4, K k5, V v5, K k6, V v6, K k7, V v7, K k8, V v8, K k9, V v9) - Type Parameters:
K- The key type.V- The value type.- Parameters:
k1- The key of the 1st pairv1- The value of the 1st pairk2- The key of the 2nd pairv2- The value of the 2nd pairk3- The key of the 3rd pairv3- The value of the 3rd pairk4- The key of the 4th pairv4- The value of the 4th pairk5- The key of the 5th pairv5- The value of the 5th pairk6- The key of the 6th pairv6- The value of the 6th pairk7- The key of the 7th pairv7- The value of the 7th pairk8- The key of the 8th pairv8- The value of the 8th pairk9- The key of the 9th pairv9- The value of the 9th pair- Returns:
- A new
LinkedHashMapinstance containing the given entries
-
LinkedMap
public static <K,V> Map<K,V> LinkedMap(K k1, V v1, K k2, V v2, K k3, V v3, K k4, V v4, K k5, V v5, K k6, V v6, K k7, V v7, K k8, V v8, K k9, V v9, K k10, V v10) - Type Parameters:
K- The key type.V- The value type.- Parameters:
k1- The key of the 1st pairv1- The value of the 1st pairk2- The key of the 2nd pairv2- The value of the 2nd pairk3- The key of the 3rd pairv3- The value of the 3rd pairk4- The key of the 4th pairv4- The value of the 4th pairk5- The key of the 5th pairv5- The value of the 5th pairk6- The key of the 6th pairv6- The value of the 6th pairk7- The key of the 7th pairv7- The value of the 7th pairk8- The key of the 8th pairv8- The value of the 8th pairk9- The key of the 9th pairv9- The value of the 9th pairk10- The key of the 10th pairv10- The value of the 10th pair- Returns:
- A new
LinkedHashMapinstance containing the given entries
-
SortedMap
Alias forTreeMap.empty()- Type Parameters:
K- The key type.V- The value type.- Returns:
- A new empty
TreeMapinstance
-
SortedMap
Alias forTreeMap.empty(Comparator)- Type Parameters:
K- The key type.V- The value type.- Parameters:
keyComparator- The comparator used to sort the entries by their key- Returns:
- A new empty
TreeMapinstance
-
SortedMap
public static <K,V> SortedMap<K,V> SortedMap(@NonNull Comparator<? super K> keyComparator, K key, V value) Alias forTreeMap.of(Comparator, Object, Object)- Type Parameters:
K- The key type.V- The value type.- Parameters:
keyComparator- The comparator used to sort the entries by their keykey- A singleton map key.value- A singleton map value.- Returns:
- A new
TreeMapinstance containing the given entry
-
SortedMap
@Deprecated @SafeVarargs public static <K extends Comparable<? super K>,V> SortedMap<K,V> SortedMap(Tuple2<? extends K, ? extends V> @NonNull ... entries) Deprecated.Will be removed in a future version.Alias forTreeMap.ofEntries(Tuple2...)- Type Parameters:
K- The key type.V- The value type.- Parameters:
entries- Map entries.- Returns:
- A new
TreeMapinstance containing the given entries
-
SortedMap
@Deprecated @SafeVarargs public static <K,V> SortedMap<K,V> SortedMap(@NonNull Comparator<? super K> keyComparator, Tuple2<? extends K, ? extends V> @NonNull ... entries) Deprecated.Will be removed in a future version.Alias forTreeMap.ofEntries(Comparator, Tuple2...)- Type Parameters:
K- The key type.V- The value type.- Parameters:
keyComparator- The comparator used to sort the entries by their keyentries- Map entries.- Returns:
- A new
TreeMapinstance containing the given entry
-
SortedMap
@Deprecated public static <K extends Comparable<? super K>,V> SortedMap<K,V> SortedMap(Map<? extends K, ? extends V> map) Deprecated.Will be removed in a future version.Alias forTreeMap.ofAll(java.util.Map)- Type Parameters:
K- The key type.V- The value type.- Parameters:
map- A map entry.- Returns:
- A new
TreeMapinstance containing the given map
-
SortedMap
Alias forTreeMap.of(Comparable, Object)- Type Parameters:
K- The key type.V- The value type.- Parameters:
k1- The keyv1- The value- Returns:
- A new
TreeMapinstance containing the given entries
-
SortedMap
- Type Parameters:
K- The key type.V- The value type.- Parameters:
k1- The key of the 1st pairv1- The value of the 1st pairk2- The key of the 2nd pairv2- The value of the 2nd pair- Returns:
- A new
TreeMapinstance containing the given entries
-
SortedMap
public static <K extends Comparable<? super K>,V> SortedMap<K,V> SortedMap(K k1, V v1, K k2, V v2, K k3, V v3) - Type Parameters:
K- The key type.V- The value type.- Parameters:
k1- The key of the 1st pairv1- The value of the 1st pairk2- The key of the 2nd pairv2- The value of the 2nd pairk3- The key of the 3rd pairv3- The value of the 3rd pair- Returns:
- A new
TreeMapinstance containing the given entries
-
SortedMap
public static <K extends Comparable<? super K>,V> SortedMap<K,V> SortedMap(K k1, V v1, K k2, V v2, K k3, V v3, K k4, V v4) Alias forTreeMap.of(Comparable, Object, Comparable, Object, Comparable, Object, Comparable, Object)- Type Parameters:
K- The key type.V- The value type.- Parameters:
k1- The key of the 1st pairv1- The value of the 1st pairk2- The key of the 2nd pairv2- The value of the 2nd pairk3- The key of the 3rd pairv3- The value of the 3rd pairk4- The key of the 4th pairv4- The value of the 4th pair- Returns:
- A new
TreeMapinstance containing the given entries
-
SortedMap
public static <K extends Comparable<? super K>,V> SortedMap<K,V> SortedMap(K k1, V v1, K k2, V v2, K k3, V v3, K k4, V v4, K k5, V v5) - Type Parameters:
K- The key type.V- The value type.- Parameters:
k1- The key of the 1st pairv1- The value of the 1st pairk2- The key of the 2nd pairv2- The value of the 2nd pairk3- The key of the 3rd pairv3- The value of the 3rd pairk4- The key of the 4th pairv4- The value of the 4th pairk5- The key of the 5th pairv5- The value of the 5th pair- Returns:
- A new
TreeMapinstance containing the given entries
-
SortedMap
public static <K extends Comparable<? super K>,V> SortedMap<K,V> SortedMap(K k1, V v1, K k2, V v2, K k3, V v3, K k4, V v4, K k5, V v5, K k6, V v6) - Type Parameters:
K- The key type.V- The value type.- Parameters:
k1- The key of the 1st pairv1- The value of the 1st pairk2- The key of the 2nd pairv2- The value of the 2nd pairk3- The key of the 3rd pairv3- The value of the 3rd pairk4- The key of the 4th pairv4- The value of the 4th pairk5- The key of the 5th pairv5- The value of the 5th pairk6- The key of the 6th pairv6- The value of the 6th pair- Returns:
- A new
TreeMapinstance containing the given entries
-
SortedMap
public static <K extends Comparable<? super K>,V> SortedMap<K,V> SortedMap(K k1, V v1, K k2, V v2, K k3, V v3, K k4, V v4, K k5, V v5, K k6, V v6, K k7, V v7) - Type Parameters:
K- The key type.V- The value type.- Parameters:
k1- The key of the 1st pairv1- The value of the 1st pairk2- The key of the 2nd pairv2- The value of the 2nd pairk3- The key of the 3rd pairv3- The value of the 3rd pairk4- The key of the 4th pairv4- The value of the 4th pairk5- The key of the 5th pairv5- The value of the 5th pairk6- The key of the 6th pairv6- The value of the 6th pairk7- The key of the 7th pairv7- The value of the 7th pair- Returns:
- A new
TreeMapinstance containing the given entries
-
SortedMap
public static <K extends Comparable<? super K>,V> SortedMap<K,V> SortedMap(K k1, V v1, K k2, V v2, K k3, V v3, K k4, V v4, K k5, V v5, K k6, V v6, K k7, V v7, K k8, V v8) - Type Parameters:
K- The key type.V- The value type.- Parameters:
k1- The key of the 1st pairv1- The value of the 1st pairk2- The key of the 2nd pairv2- The value of the 2nd pairk3- The key of the 3rd pairv3- The value of the 3rd pairk4- The key of the 4th pairv4- The value of the 4th pairk5- The key of the 5th pairv5- The value of the 5th pairk6- The key of the 6th pairv6- The value of the 6th pairk7- The key of the 7th pairv7- The value of the 7th pairk8- The key of the 8th pairv8- The value of the 8th pair- Returns:
- A new
TreeMapinstance containing the given entries
-
SortedMap
public static <K extends Comparable<? super K>,V> SortedMap<K,V> SortedMap(K k1, V v1, K k2, V v2, K k3, V v3, K k4, V v4, K k5, V v5, K k6, V v6, K k7, V v7, K k8, V v8, K k9, V v9) - Type Parameters:
K- The key type.V- The value type.- Parameters:
k1- The key of the 1st pairv1- The value of the 1st pairk2- The key of the 2nd pairv2- The value of the 2nd pairk3- The key of the 3rd pairv3- The value of the 3rd pairk4- The key of the 4th pairv4- The value of the 4th pairk5- The key of the 5th pairv5- The value of the 5th pairk6- The key of the 6th pairv6- The value of the 6th pairk7- The key of the 7th pairv7- The value of the 7th pairk8- The key of the 8th pairv8- The value of the 8th pairk9- The key of the 9th pairv9- The value of the 9th pair- Returns:
- A new
TreeMapinstance containing the given entries
-
SortedMap
public static <K extends Comparable<? super K>,V> SortedMap<K,V> SortedMap(K k1, V v1, K k2, V v2, K k3, V v3, K k4, V v4, K k5, V v5, K k6, V v6, K k7, V v7, K k8, V v8, K k9, V v9, K k10, V v10) - Type Parameters:
K- The key type.V- The value type.- Parameters:
k1- The key of the 1st pairv1- The value of the 1st pairk2- The key of the 2nd pairv2- The value of the 2nd pairk3- The key of the 3rd pairv3- The value of the 3rd pairk4- The key of the 4th pairv4- The value of the 4th pairk5- The key of the 5th pairv5- The value of the 5th pairk6- The key of the 6th pairv6- The value of the 6th pairk7- The key of the 7th pairv7- The value of the 7th pairk8- The key of the 8th pairv8- The value of the 8th pairk9- The key of the 9th pairv9- The value of the 9th pairk10- The key of the 10th pairv10- The value of the 10th pair- Returns:
- A new
TreeMapinstance containing the given entries
-
run
Runs aunitof work and returnsVoid. This is helpful when a return value is expected, e.g. byMatch:Match(i).of( Case($(is(0)), i -> run(() -> System.out.println("zero"))), Case($(is(1)), i -> run(() -> System.out.println("one"))), Case($(), o -> run(() -> System.out.println("many"))) )- Parameters:
unit- A block of code to be run.- Returns:
- the single instance of
Void, namelynull
-
For
A shortcut forIterator.ofAll(ts).flatMap(f)which allows us to write real for-comprehensions usingFor(...).yield(...).Example:
For(getPersons(), person -> For(person.getTweets(), tweet -> For(tweet.getReplies()) .yield(reply -> person + ", " + tweet + ", " + reply)));- Type Parameters:
T- element type oftsU- component type of the resultingIterator- Parameters:
ts- An iterablef- A functionT -> Iterable<U>- Returns:
- A new Iterator
-
For
Creates aFor-comprehension of one Iterable.- Type Parameters:
T1- component type of the 1st Iterable- Parameters:
ts1- the 1st Iterable- Returns:
- a new
For-comprehension of arity 1
-
For
Creates aFor-comprehension of two Iterables.- Type Parameters:
T1- component type of the 1st IterableT2- component type of the 2nd Iterable- Parameters:
ts1- the 1st Iterablets2- the 2nd Iterable- Returns:
- a new
For-comprehension of arity 2
-
For
public static <T1,T2, API.For3<T1,T3> T2, ForT3> (@NonNull Iterable<T1> ts1, @NonNull Iterable<T2> ts2, @NonNull Iterable<T3> ts3) Creates aFor-comprehension of three Iterables.- Type Parameters:
T1- component type of the 1st IterableT2- component type of the 2nd IterableT3- component type of the 3rd Iterable- Parameters:
ts1- the 1st Iterablets2- the 2nd Iterablets3- the 3rd Iterable- Returns:
- a new
For-comprehension of arity 3
-
For
public static <T1,T2, API.For4<T1,T3, T4> T2, ForT3, T4> (@NonNull Iterable<T1> ts1, @NonNull Iterable<T2> ts2, @NonNull Iterable<T3> ts3, @NonNull Iterable<T4> ts4) Creates aFor-comprehension of 4 Iterables.- Type Parameters:
T1- component type of the 1st IterableT2- component type of the 2nd IterableT3- component type of the 3rd IterableT4- component type of the 4th Iterable- Parameters:
ts1- the 1st Iterablets2- the 2nd Iterablets3- the 3rd Iterablets4- the 4th Iterable- Returns:
- a new
For-comprehension of arity 4
-
For
public static <T1,T2, API.For5<T1,T3, T4, T5> T2, ForT3, T4, T5> (@NonNull Iterable<T1> ts1, @NonNull Iterable<T2> ts2, @NonNull Iterable<T3> ts3, @NonNull Iterable<T4> ts4, @NonNull Iterable<T5> ts5) Creates aFor-comprehension of 5 Iterables.- Type Parameters:
T1- component type of the 1st IterableT2- component type of the 2nd IterableT3- component type of the 3rd IterableT4- component type of the 4th IterableT5- component type of the 5th Iterable- Parameters:
ts1- the 1st Iterablets2- the 2nd Iterablets3- the 3rd Iterablets4- the 4th Iterablets5- the 5th Iterable- Returns:
- a new
For-comprehension of arity 5
-
For
public static <T1,T2, API.For6<T1,T3, T4, T5, T6> T2, ForT3, T4, T5, T6> (@NonNull Iterable<T1> ts1, @NonNull Iterable<T2> ts2, @NonNull Iterable<T3> ts3, @NonNull Iterable<T4> ts4, @NonNull Iterable<T5> ts5, @NonNull Iterable<T6> ts6) Creates aFor-comprehension of 6 Iterables.- Type Parameters:
T1- component type of the 1st IterableT2- component type of the 2nd IterableT3- component type of the 3rd IterableT4- component type of the 4th IterableT5- component type of the 5th IterableT6- component type of the 6th Iterable- Parameters:
ts1- the 1st Iterablets2- the 2nd Iterablets3- the 3rd Iterablets4- the 4th Iterablets5- the 5th Iterablets6- the 6th Iterable- Returns:
- a new
For-comprehension of arity 6
-
For
public static <T1,T2, API.For7<T1,T3, T4, T5, T6, T7> T2, ForT3, T4, T5, T6, T7> (@NonNull Iterable<T1> ts1, @NonNull Iterable<T2> ts2, @NonNull Iterable<T3> ts3, @NonNull Iterable<T4> ts4, @NonNull Iterable<T5> ts5, @NonNull Iterable<T6> ts6, @NonNull Iterable<T7> ts7) Creates aFor-comprehension of 7 Iterables.- Type Parameters:
T1- component type of the 1st IterableT2- component type of the 2nd IterableT3- component type of the 3rd IterableT4- component type of the 4th IterableT5- component type of the 5th IterableT6- component type of the 6th IterableT7- component type of the 7th Iterable- Parameters:
ts1- the 1st Iterablets2- the 2nd Iterablets3- the 3rd Iterablets4- the 4th Iterablets5- the 5th Iterablets6- the 6th Iterablets7- the 7th Iterable- Returns:
- a new
For-comprehension of arity 7
-
For
public static <T1,T2, API.For8<T1,T3, T4, T5, T6, T7, T8> T2, ForT3, T4, T5, T6, T7, T8> (@NonNull Iterable<T1> ts1, @NonNull Iterable<T2> ts2, @NonNull Iterable<T3> ts3, @NonNull Iterable<T4> ts4, @NonNull Iterable<T5> ts5, @NonNull Iterable<T6> ts6, @NonNull Iterable<T7> ts7, @NonNull Iterable<T8> ts8) Creates aFor-comprehension of 8 Iterables.- Type Parameters:
T1- component type of the 1st IterableT2- component type of the 2nd IterableT3- component type of the 3rd IterableT4- component type of the 4th IterableT5- component type of the 5th IterableT6- component type of the 6th IterableT7- component type of the 7th IterableT8- component type of the 8th Iterable- Parameters:
ts1- the 1st Iterablets2- the 2nd Iterablets3- the 3rd Iterablets4- the 4th Iterablets5- the 5th Iterablets6- the 6th Iterablets7- the 7th Iterablets8- the 8th Iterable- Returns:
- a new
For-comprehension of arity 8
-
For
Creates aFor-comprehension of one Option.- Type Parameters:
T1- component type of the 1st Option- Parameters:
ts1- the 1st Option- Returns:
- a new
For-comprehension of arity 1
-
For
Creates aFor-comprehension of two Options.- Type Parameters:
T1- component type of the 1st OptionT2- component type of the 2nd Option- Parameters:
ts1- the 1st Optionts2- the 2nd Option- Returns:
- a new
For-comprehension of arity 2
-
For
public static <T1,T2, API.For3Option<T1,T3> T2, ForT3> (@NonNull Option<T1> ts1, @NonNull Option<T2> ts2, @NonNull Option<T3> ts3) Creates aFor-comprehension of three Options.- Type Parameters:
T1- component type of the 1st OptionT2- component type of the 2nd OptionT3- component type of the 3rd Option- Parameters:
ts1- the 1st Optionts2- the 2nd Optionts3- the 3rd Option- Returns:
- a new
For-comprehension of arity 3
-
For
public static <T1,T2, API.For4Option<T1,T3, T4> T2, ForT3, T4> (@NonNull Option<T1> ts1, @NonNull Option<T2> ts2, @NonNull Option<T3> ts3, @NonNull Option<T4> ts4) Creates aFor-comprehension of 4 Options.- Type Parameters:
T1- component type of the 1st OptionT2- component type of the 2nd OptionT3- component type of the 3rd OptionT4- component type of the 4th Option- Parameters:
ts1- the 1st Optionts2- the 2nd Optionts3- the 3rd Optionts4- the 4th Option- Returns:
- a new
For-comprehension of arity 4
-
For
public static <T1,T2, API.For5Option<T1,T3, T4, T5> T2, ForT3, T4, T5> (@NonNull Option<T1> ts1, @NonNull Option<T2> ts2, @NonNull Option<T3> ts3, @NonNull Option<T4> ts4, @NonNull Option<T5> ts5) Creates aFor-comprehension of 5 Options.- Type Parameters:
T1- component type of the 1st OptionT2- component type of the 2nd OptionT3- component type of the 3rd OptionT4- component type of the 4th OptionT5- component type of the 5th Option- Parameters:
ts1- the 1st Optionts2- the 2nd Optionts3- the 3rd Optionts4- the 4th Optionts5- the 5th Option- Returns:
- a new
For-comprehension of arity 5
-
For
public static <T1,T2, API.For6Option<T1,T3, T4, T5, T6> T2, ForT3, T4, T5, T6> (@NonNull Option<T1> ts1, @NonNull Option<T2> ts2, @NonNull Option<T3> ts3, @NonNull Option<T4> ts4, @NonNull Option<T5> ts5, @NonNull Option<T6> ts6) Creates aFor-comprehension of 6 Options.- Type Parameters:
T1- component type of the 1st OptionT2- component type of the 2nd OptionT3- component type of the 3rd OptionT4- component type of the 4th OptionT5- component type of the 5th OptionT6- component type of the 6th Option- Parameters:
ts1- the 1st Optionts2- the 2nd Optionts3- the 3rd Optionts4- the 4th Optionts5- the 5th Optionts6- the 6th Option- Returns:
- a new
For-comprehension of arity 6
-
For
public static <T1,T2, API.For7Option<T1,T3, T4, T5, T6, T7> T2, ForT3, T4, T5, T6, T7> (@NonNull Option<T1> ts1, @NonNull Option<T2> ts2, @NonNull Option<T3> ts3, @NonNull Option<T4> ts4, @NonNull Option<T5> ts5, @NonNull Option<T6> ts6, @NonNull Option<T7> ts7) Creates aFor-comprehension of 7 Options.- Type Parameters:
T1- component type of the 1st OptionT2- component type of the 2nd OptionT3- component type of the 3rd OptionT4- component type of the 4th OptionT5- component type of the 5th OptionT6- component type of the 6th OptionT7- component type of the 7th Option- Parameters:
ts1- the 1st Optionts2- the 2nd Optionts3- the 3rd Optionts4- the 4th Optionts5- the 5th Optionts6- the 6th Optionts7- the 7th Option- Returns:
- a new
For-comprehension of arity 7
-
For
public static <T1,T2, API.For8Option<T1,T3, T4, T5, T6, T7, T8> T2, ForT3, T4, T5, T6, T7, T8> (@NonNull Option<T1> ts1, @NonNull Option<T2> ts2, @NonNull Option<T3> ts3, @NonNull Option<T4> ts4, @NonNull Option<T5> ts5, @NonNull Option<T6> ts6, @NonNull Option<T7> ts7, @NonNull Option<T8> ts8) Creates aFor-comprehension of 8 Options.- Type Parameters:
T1- component type of the 1st OptionT2- component type of the 2nd OptionT3- component type of the 3rd OptionT4- component type of the 4th OptionT5- component type of the 5th OptionT6- component type of the 6th OptionT7- component type of the 7th OptionT8- component type of the 8th Option- Parameters:
ts1- the 1st Optionts2- the 2nd Optionts3- the 3rd Optionts4- the 4th Optionts5- the 5th Optionts6- the 6th Optionts7- the 7th Optionts8- the 8th Option- Returns:
- a new
For-comprehension of arity 8
-
For
Creates aFor-comprehension of one Future.- Type Parameters:
T1- component type of the 1st Future- Parameters:
ts1- the 1st Future- Returns:
- a new
For-comprehension of arity 1
-
For
Creates aFor-comprehension of two Futures.- Type Parameters:
T1- component type of the 1st FutureT2- component type of the 2nd Future- Parameters:
ts1- the 1st Futurets2- the 2nd Future- Returns:
- a new
For-comprehension of arity 2
-
For
public static <T1,T2, API.For3Future<T1,T3> T2, ForT3> (@NonNull Future<T1> ts1, @NonNull Future<T2> ts2, @NonNull Future<T3> ts3) Creates aFor-comprehension of three Futures.- Type Parameters:
T1- component type of the 1st FutureT2- component type of the 2nd FutureT3- component type of the 3rd Future- Parameters:
ts1- the 1st Futurets2- the 2nd Futurets3- the 3rd Future- Returns:
- a new
For-comprehension of arity 3
-
For
public static <T1,T2, API.For4Future<T1,T3, T4> T2, ForT3, T4> (@NonNull Future<T1> ts1, @NonNull Future<T2> ts2, @NonNull Future<T3> ts3, @NonNull Future<T4> ts4) Creates aFor-comprehension of 4 Futures.- Type Parameters:
T1- component type of the 1st FutureT2- component type of the 2nd FutureT3- component type of the 3rd FutureT4- component type of the 4th Future- Parameters:
ts1- the 1st Futurets2- the 2nd Futurets3- the 3rd Futurets4- the 4th Future- Returns:
- a new
For-comprehension of arity 4
-
For
public static <T1,T2, API.For5Future<T1,T3, T4, T5> T2, ForT3, T4, T5> (@NonNull Future<T1> ts1, @NonNull Future<T2> ts2, @NonNull Future<T3> ts3, @NonNull Future<T4> ts4, @NonNull Future<T5> ts5) Creates aFor-comprehension of 5 Futures.- Type Parameters:
T1- component type of the 1st FutureT2- component type of the 2nd FutureT3- component type of the 3rd FutureT4- component type of the 4th FutureT5- component type of the 5th Future- Parameters:
ts1- the 1st Futurets2- the 2nd Futurets3- the 3rd Futurets4- the 4th Futurets5- the 5th Future- Returns:
- a new
For-comprehension of arity 5
-
For
public static <T1,T2, API.For6Future<T1,T3, T4, T5, T6> T2, ForT3, T4, T5, T6> (@NonNull Future<T1> ts1, @NonNull Future<T2> ts2, @NonNull Future<T3> ts3, @NonNull Future<T4> ts4, @NonNull Future<T5> ts5, @NonNull Future<T6> ts6) Creates aFor-comprehension of 6 Futures.- Type Parameters:
T1- component type of the 1st FutureT2- component type of the 2nd FutureT3- component type of the 3rd FutureT4- component type of the 4th FutureT5- component type of the 5th FutureT6- component type of the 6th Future- Parameters:
ts1- the 1st Futurets2- the 2nd Futurets3- the 3rd Futurets4- the 4th Futurets5- the 5th Futurets6- the 6th Future- Returns:
- a new
For-comprehension of arity 6
-
For
public static <T1,T2, API.For7Future<T1,T3, T4, T5, T6, T7> T2, ForT3, T4, T5, T6, T7> (@NonNull Future<T1> ts1, @NonNull Future<T2> ts2, @NonNull Future<T3> ts3, @NonNull Future<T4> ts4, @NonNull Future<T5> ts5, @NonNull Future<T6> ts6, @NonNull Future<T7> ts7) Creates aFor-comprehension of 7 Futures.- Type Parameters:
T1- component type of the 1st FutureT2- component type of the 2nd FutureT3- component type of the 3rd FutureT4- component type of the 4th FutureT5- component type of the 5th FutureT6- component type of the 6th FutureT7- component type of the 7th Future- Parameters:
ts1- the 1st Futurets2- the 2nd Futurets3- the 3rd Futurets4- the 4th Futurets5- the 5th Futurets6- the 6th Futurets7- the 7th Future- Returns:
- a new
For-comprehension of arity 7
-
For
public static <T1,T2, API.For8Future<T1,T3, T4, T5, T6, T7, T8> T2, ForT3, T4, T5, T6, T7, T8> (@NonNull Future<T1> ts1, @NonNull Future<T2> ts2, @NonNull Future<T3> ts3, @NonNull Future<T4> ts4, @NonNull Future<T5> ts5, @NonNull Future<T6> ts6, @NonNull Future<T7> ts7, @NonNull Future<T8> ts8) Creates aFor-comprehension of 8 Futures.- Type Parameters:
T1- component type of the 1st FutureT2- component type of the 2nd FutureT3- component type of the 3rd FutureT4- component type of the 4th FutureT5- component type of the 5th FutureT6- component type of the 6th FutureT7- component type of the 7th FutureT8- component type of the 8th Future- Parameters:
ts1- the 1st Futurets2- the 2nd Futurets3- the 3rd Futurets4- the 4th Futurets5- the 5th Futurets6- the 6th Futurets7- the 7th Futurets8- the 8th Future- Returns:
- a new
For-comprehension of arity 8
-
For
Creates aFor-comprehension of one Try.- Type Parameters:
T1- component type of the 1st Try- Parameters:
ts1- the 1st Try- Returns:
- a new
For-comprehension of arity 1
-
For
Creates aFor-comprehension of two Trys.- Type Parameters:
T1- component type of the 1st TryT2- component type of the 2nd Try- Parameters:
ts1- the 1st Tryts2- the 2nd Try- Returns:
- a new
For-comprehension of arity 2
-
For
public static <T1,T2, API.For3Try<T1,T3> T2, ForT3> (@NonNull Try<T1> ts1, @NonNull Try<T2> ts2, @NonNull Try<T3> ts3) Creates aFor-comprehension of three Trys.- Type Parameters:
T1- component type of the 1st TryT2- component type of the 2nd TryT3- component type of the 3rd Try- Parameters:
ts1- the 1st Tryts2- the 2nd Tryts3- the 3rd Try- Returns:
- a new
For-comprehension of arity 3
-
For
public static <T1,T2, API.For4Try<T1,T3, T4> T2, ForT3, T4> (@NonNull Try<T1> ts1, @NonNull Try<T2> ts2, @NonNull Try<T3> ts3, @NonNull Try<T4> ts4) Creates aFor-comprehension of 4 Trys.- Type Parameters:
T1- component type of the 1st TryT2- component type of the 2nd TryT3- component type of the 3rd TryT4- component type of the 4th Try- Parameters:
ts1- the 1st Tryts2- the 2nd Tryts3- the 3rd Tryts4- the 4th Try- Returns:
- a new
For-comprehension of arity 4
-
For
public static <T1,T2, API.For5Try<T1,T3, T4, T5> T2, ForT3, T4, T5> (@NonNull Try<T1> ts1, @NonNull Try<T2> ts2, @NonNull Try<T3> ts3, @NonNull Try<T4> ts4, @NonNull Try<T5> ts5) Creates aFor-comprehension of 5 Trys.- Type Parameters:
T1- component type of the 1st TryT2- component type of the 2nd TryT3- component type of the 3rd TryT4- component type of the 4th TryT5- component type of the 5th Try- Parameters:
ts1- the 1st Tryts2- the 2nd Tryts3- the 3rd Tryts4- the 4th Tryts5- the 5th Try- Returns:
- a new
For-comprehension of arity 5
-
For
public static <T1,T2, API.For6Try<T1,T3, T4, T5, T6> T2, ForT3, T4, T5, T6> (@NonNull Try<T1> ts1, @NonNull Try<T2> ts2, @NonNull Try<T3> ts3, @NonNull Try<T4> ts4, @NonNull Try<T5> ts5, @NonNull Try<T6> ts6) Creates aFor-comprehension of 6 Trys.- Type Parameters:
T1- component type of the 1st TryT2- component type of the 2nd TryT3- component type of the 3rd TryT4- component type of the 4th TryT5- component type of the 5th TryT6- component type of the 6th Try- Parameters:
ts1- the 1st Tryts2- the 2nd Tryts3- the 3rd Tryts4- the 4th Tryts5- the 5th Tryts6- the 6th Try- Returns:
- a new
For-comprehension of arity 6
-
For
public static <T1,T2, API.For7Try<T1,T3, T4, T5, T6, T7> T2, ForT3, T4, T5, T6, T7> (@NonNull Try<T1> ts1, @NonNull Try<T2> ts2, @NonNull Try<T3> ts3, @NonNull Try<T4> ts4, @NonNull Try<T5> ts5, @NonNull Try<T6> ts6, @NonNull Try<T7> ts7) Creates aFor-comprehension of 7 Trys.- Type Parameters:
T1- component type of the 1st TryT2- component type of the 2nd TryT3- component type of the 3rd TryT4- component type of the 4th TryT5- component type of the 5th TryT6- component type of the 6th TryT7- component type of the 7th Try- Parameters:
ts1- the 1st Tryts2- the 2nd Tryts3- the 3rd Tryts4- the 4th Tryts5- the 5th Tryts6- the 6th Tryts7- the 7th Try- Returns:
- a new
For-comprehension of arity 7
-
For
public static <T1,T2, API.For8Try<T1,T3, T4, T5, T6, T7, T8> T2, ForT3, T4, T5, T6, T7, T8> (@NonNull Try<T1> ts1, @NonNull Try<T2> ts2, @NonNull Try<T3> ts3, @NonNull Try<T4> ts4, @NonNull Try<T5> ts5, @NonNull Try<T6> ts6, @NonNull Try<T7> ts7, @NonNull Try<T8> ts8) Creates aFor-comprehension of 8 Trys.- Type Parameters:
T1- component type of the 1st TryT2- component type of the 2nd TryT3- component type of the 3rd TryT4- component type of the 4th TryT5- component type of the 5th TryT6- component type of the 6th TryT7- component type of the 7th TryT8- component type of the 8th Try- Parameters:
ts1- the 1st Tryts2- the 2nd Tryts3- the 3rd Tryts4- the 4th Tryts5- the 5th Tryts6- the 6th Tryts7- the 7th Tryts8- the 8th Try- Returns:
- a new
For-comprehension of arity 8
-
For
Creates aFor-comprehension of one List.- Type Parameters:
T1- component type of the 1st List- Parameters:
ts1- the 1st List- Returns:
- a new
For-comprehension of arity 1
-
For
Creates aFor-comprehension of two Lists.- Type Parameters:
T1- component type of the 1st ListT2- component type of the 2nd List- Parameters:
ts1- the 1st Listts2- the 2nd List- Returns:
- a new
For-comprehension of arity 2
-
For
public static <T1,T2, API.For3List<T1,T3> T2, ForT3> (@NonNull List<T1> ts1, @NonNull List<T2> ts2, @NonNull List<T3> ts3) Creates aFor-comprehension of three Lists.- Type Parameters:
T1- component type of the 1st ListT2- component type of the 2nd ListT3- component type of the 3rd List- Parameters:
ts1- the 1st Listts2- the 2nd Listts3- the 3rd List- Returns:
- a new
For-comprehension of arity 3
-
For
public static <T1,T2, API.For4List<T1,T3, T4> T2, ForT3, T4> (@NonNull List<T1> ts1, @NonNull List<T2> ts2, @NonNull List<T3> ts3, @NonNull List<T4> ts4) Creates aFor-comprehension of 4 Lists.- Type Parameters:
T1- component type of the 1st ListT2- component type of the 2nd ListT3- component type of the 3rd ListT4- component type of the 4th List- Parameters:
ts1- the 1st Listts2- the 2nd Listts3- the 3rd Listts4- the 4th List- Returns:
- a new
For-comprehension of arity 4
-
For
public static <T1,T2, API.For5List<T1,T3, T4, T5> T2, ForT3, T4, T5> (@NonNull List<T1> ts1, @NonNull List<T2> ts2, @NonNull List<T3> ts3, @NonNull List<T4> ts4, @NonNull List<T5> ts5) Creates aFor-comprehension of 5 Lists.- Type Parameters:
T1- component type of the 1st ListT2- component type of the 2nd ListT3- component type of the 3rd ListT4- component type of the 4th ListT5- component type of the 5th List- Parameters:
ts1- the 1st Listts2- the 2nd Listts3- the 3rd Listts4- the 4th Listts5- the 5th List- Returns:
- a new
For-comprehension of arity 5
-
For
public static <T1,T2, API.For6List<T1,T3, T4, T5, T6> T2, ForT3, T4, T5, T6> (@NonNull List<T1> ts1, @NonNull List<T2> ts2, @NonNull List<T3> ts3, @NonNull List<T4> ts4, @NonNull List<T5> ts5, @NonNull List<T6> ts6) Creates aFor-comprehension of 6 Lists.- Type Parameters:
T1- component type of the 1st ListT2- component type of the 2nd ListT3- component type of the 3rd ListT4- component type of the 4th ListT5- component type of the 5th ListT6- component type of the 6th List- Parameters:
ts1- the 1st Listts2- the 2nd Listts3- the 3rd Listts4- the 4th Listts5- the 5th Listts6- the 6th List- Returns:
- a new
For-comprehension of arity 6
-
For
public static <T1,T2, API.For7List<T1,T3, T4, T5, T6, T7> T2, ForT3, T4, T5, T6, T7> (@NonNull List<T1> ts1, @NonNull List<T2> ts2, @NonNull List<T3> ts3, @NonNull List<T4> ts4, @NonNull List<T5> ts5, @NonNull List<T6> ts6, @NonNull List<T7> ts7) Creates aFor-comprehension of 7 Lists.- Type Parameters:
T1- component type of the 1st ListT2- component type of the 2nd ListT3- component type of the 3rd ListT4- component type of the 4th ListT5- component type of the 5th ListT6- component type of the 6th ListT7- component type of the 7th List- Parameters:
ts1- the 1st Listts2- the 2nd Listts3- the 3rd Listts4- the 4th Listts5- the 5th Listts6- the 6th Listts7- the 7th List- Returns:
- a new
For-comprehension of arity 7
-
For
public static <T1,T2, API.For8List<T1,T3, T4, T5, T6, T7, T8> T2, ForT3, T4, T5, T6, T7, T8> (@NonNull List<T1> ts1, @NonNull List<T2> ts2, @NonNull List<T3> ts3, @NonNull List<T4> ts4, @NonNull List<T5> ts5, @NonNull List<T6> ts6, @NonNull List<T7> ts7, @NonNull List<T8> ts8) Creates aFor-comprehension of 8 Lists.- Type Parameters:
T1- component type of the 1st ListT2- component type of the 2nd ListT3- component type of the 3rd ListT4- component type of the 4th ListT5- component type of the 5th ListT6- component type of the 6th ListT7- component type of the 7th ListT8- component type of the 8th List- Parameters:
ts1- the 1st Listts2- the 2nd Listts3- the 3rd Listts4- the 4th Listts5- the 5th Listts6- the 6th Listts7- the 7th Listts8- the 8th List- Returns:
- a new
For-comprehension of arity 8
-
For
Creates aFor-comprehension of one Either.- Type Parameters:
L- left-hand type of all EithersT1- component type of the 1st Either- Parameters:
ts1- the 1st Either- Returns:
- a new
For-comprehension of arity 1
-
For
public static <L,T1, API.For2Either<L,T2> T1, ForT2> (@NonNull Either<L, T1> ts1, @NonNull Either<L, T2> ts2) Creates aFor-comprehension of two Eithers.- Type Parameters:
L- left-hand type of all EithersT1- component type of the 1st EitherT2- component type of the 2nd Either- Parameters:
ts1- the 1st Eitherts2- the 2nd Either- Returns:
- a new
For-comprehension of arity 2
-
For
public static <L,T1, API.For3Either<L,T2, T3> T1, ForT2, T3> (@NonNull Either<L, T1> ts1, @NonNull Either<L, T2> ts2, @NonNull Either<L, T3> ts3) Creates aFor-comprehension of three Eithers.- Type Parameters:
L- left-hand type of all EithersT1- component type of the 1st EitherT2- component type of the 2nd EitherT3- component type of the 3rd Either- Parameters:
ts1- the 1st Eitherts2- the 2nd Eitherts3- the 3rd Either- Returns:
- a new
For-comprehension of arity 3
-
For
public static <L,T1, API.For4Either<L,T2, T3, T4> T1, ForT2, T3, T4> (@NonNull Either<L, T1> ts1, @NonNull Either<L, T2> ts2, @NonNull Either<L, T3> ts3, @NonNull Either<L, T4> ts4) Creates aFor-comprehension of 4 Eithers.- Type Parameters:
L- left-hand type of all EithersT1- component type of the 1st EitherT2- component type of the 2nd EitherT3- component type of the 3rd EitherT4- component type of the 4th Either- Parameters:
ts1- the 1st Eitherts2- the 2nd Eitherts3- the 3rd Eitherts4- the 4th Either- Returns:
- a new
For-comprehension of arity 4
-
For
public static <L,T1, API.For5Either<L,T2, T3, T4, T5> T1, ForT2, T3, T4, T5> (@NonNull Either<L, T1> ts1, @NonNull Either<L, T2> ts2, @NonNull Either<L, T3> ts3, @NonNull Either<L, T4> ts4, @NonNull Either<L, T5> ts5) Creates aFor-comprehension of 5 Eithers.- Type Parameters:
L- left-hand type of all EithersT1- component type of the 1st EitherT2- component type of the 2nd EitherT3- component type of the 3rd EitherT4- component type of the 4th EitherT5- component type of the 5th Either- Parameters:
ts1- the 1st Eitherts2- the 2nd Eitherts3- the 3rd Eitherts4- the 4th Eitherts5- the 5th Either- Returns:
- a new
For-comprehension of arity 5
-
For
public static <L,T1, API.For6Either<L,T2, T3, T4, T5, T6> T1, ForT2, T3, T4, T5, T6> (@NonNull Either<L, T1> ts1, @NonNull Either<L, T2> ts2, @NonNull Either<L, T3> ts3, @NonNull Either<L, T4> ts4, @NonNull Either<L, T5> ts5, @NonNull Either<L, T6> ts6) Creates aFor-comprehension of 6 Eithers.- Type Parameters:
L- left-hand type of all EithersT1- component type of the 1st EitherT2- component type of the 2nd EitherT3- component type of the 3rd EitherT4- component type of the 4th EitherT5- component type of the 5th EitherT6- component type of the 6th Either- Parameters:
ts1- the 1st Eitherts2- the 2nd Eitherts3- the 3rd Eitherts4- the 4th Eitherts5- the 5th Eitherts6- the 6th Either- Returns:
- a new
For-comprehension of arity 6
-
For
public static <L,T1, API.For7Either<L,T2, T3, T4, T5, T6, T7> T1, ForT2, T3, T4, T5, T6, T7> (@NonNull Either<L, T1> ts1, @NonNull Either<L, T2> ts2, @NonNull Either<L, T3> ts3, @NonNull Either<L, T4> ts4, @NonNull Either<L, T5> ts5, @NonNull Either<L, T6> ts6, @NonNull Either<L, T7> ts7) Creates aFor-comprehension of 7 Eithers.- Type Parameters:
L- left-hand type of all EithersT1- component type of the 1st EitherT2- component type of the 2nd EitherT3- component type of the 3rd EitherT4- component type of the 4th EitherT5- component type of the 5th EitherT6- component type of the 6th EitherT7- component type of the 7th Either- Parameters:
ts1- the 1st Eitherts2- the 2nd Eitherts3- the 3rd Eitherts4- the 4th Eitherts5- the 5th Eitherts6- the 6th Eitherts7- the 7th Either- Returns:
- a new
For-comprehension of arity 7
-
For
public static <L,T1, API.For8Either<L,T2, T3, T4, T5, T6, T7, T8> T1, ForT2, T3, T4, T5, T6, T7, T8> (@NonNull Either<L, T1> ts1, @NonNull Either<L, T2> ts2, @NonNull Either<L, T3> ts3, @NonNull Either<L, T4> ts4, @NonNull Either<L, T5> ts5, @NonNull Either<L, T6> ts6, @NonNull Either<L, T7> ts7, @NonNull Either<L, T8> ts8) Creates aFor-comprehension of 8 Eithers.- Type Parameters:
L- left-hand type of all EithersT1- component type of the 1st EitherT2- component type of the 2nd EitherT3- component type of the 3rd EitherT4- component type of the 4th EitherT5- component type of the 5th EitherT6- component type of the 6th EitherT7- component type of the 7th EitherT8- component type of the 8th Either- Parameters:
ts1- the 1st Eitherts2- the 2nd Eitherts3- the 3rd Eitherts4- the 4th Eitherts5- the 5th Eitherts6- the 6th Eitherts7- the 7th Eitherts8- the 8th Either- Returns:
- a new
For-comprehension of arity 8
-
For
Creates aFor-comprehension of one Validation.- Type Parameters:
L- left-hand type of all ValidationsT1- component type of the 1st Validation- Parameters:
ts1- the 1st Validation- Returns:
- a new
For-comprehension of arity 1
-
For
public static <L,T1, API.For2Validation<L,T2> T1, ForT2> (@NonNull Validation<L, T1> ts1, @NonNull Validation<L, T2> ts2) Creates aFor-comprehension of two Validations.- Type Parameters:
L- left-hand type of all ValidationsT1- component type of the 1st ValidationT2- component type of the 2nd Validation- Parameters:
ts1- the 1st Validationts2- the 2nd Validation- Returns:
- a new
For-comprehension of arity 2
-
For
public static <L,T1, API.For3Validation<L,T2, T3> T1, ForT2, T3> (@NonNull Validation<L, T1> ts1, @NonNull Validation<L, T2> ts2, @NonNull Validation<L, T3> ts3) Creates aFor-comprehension of three Validations.- Type Parameters:
L- left-hand type of all ValidationsT1- component type of the 1st ValidationT2- component type of the 2nd ValidationT3- component type of the 3rd Validation- Parameters:
ts1- the 1st Validationts2- the 2nd Validationts3- the 3rd Validation- Returns:
- a new
For-comprehension of arity 3
-
For
public static <L,T1, API.For4Validation<L,T2, T3, T4> T1, ForT2, T3, T4> (@NonNull Validation<L, T1> ts1, @NonNull Validation<L, T2> ts2, @NonNull Validation<L, T3> ts3, @NonNull Validation<L, T4> ts4) Creates aFor-comprehension of 4 Validations.- Type Parameters:
L- left-hand type of all ValidationsT1- component type of the 1st ValidationT2- component type of the 2nd ValidationT3- component type of the 3rd ValidationT4- component type of the 4th Validation- Parameters:
ts1- the 1st Validationts2- the 2nd Validationts3- the 3rd Validationts4- the 4th Validation- Returns:
- a new
For-comprehension of arity 4
-
For
public static <L,T1, API.For5Validation<L,T2, T3, T4, T5> T1, ForT2, T3, T4, T5> (@NonNull Validation<L, T1> ts1, @NonNull Validation<L, T2> ts2, @NonNull Validation<L, T3> ts3, @NonNull Validation<L, T4> ts4, @NonNull Validation<L, T5> ts5) Creates aFor-comprehension of 5 Validations.- Type Parameters:
L- left-hand type of all ValidationsT1- component type of the 1st ValidationT2- component type of the 2nd ValidationT3- component type of the 3rd ValidationT4- component type of the 4th ValidationT5- component type of the 5th Validation- Parameters:
ts1- the 1st Validationts2- the 2nd Validationts3- the 3rd Validationts4- the 4th Validationts5- the 5th Validation- Returns:
- a new
For-comprehension of arity 5
-
For
public static <L,T1, API.For6Validation<L,T2, T3, T4, T5, T6> T1, ForT2, T3, T4, T5, T6> (@NonNull Validation<L, T1> ts1, @NonNull Validation<L, T2> ts2, @NonNull Validation<L, T3> ts3, @NonNull Validation<L, T4> ts4, @NonNull Validation<L, T5> ts5, @NonNull Validation<L, T6> ts6) Creates aFor-comprehension of 6 Validations.- Type Parameters:
L- left-hand type of all ValidationsT1- component type of the 1st ValidationT2- component type of the 2nd ValidationT3- component type of the 3rd ValidationT4- component type of the 4th ValidationT5- component type of the 5th ValidationT6- component type of the 6th Validation- Parameters:
ts1- the 1st Validationts2- the 2nd Validationts3- the 3rd Validationts4- the 4th Validationts5- the 5th Validationts6- the 6th Validation- Returns:
- a new
For-comprehension of arity 6
-
For
public static <L,T1, API.For7Validation<L,T2, T3, T4, T5, T6, T7> T1, ForT2, T3, T4, T5, T6, T7> (@NonNull Validation<L, T1> ts1, @NonNull Validation<L, T2> ts2, @NonNull Validation<L, T3> ts3, @NonNull Validation<L, T4> ts4, @NonNull Validation<L, T5> ts5, @NonNull Validation<L, T6> ts6, @NonNull Validation<L, T7> ts7) Creates aFor-comprehension of 7 Validations.- Type Parameters:
L- left-hand type of all ValidationsT1- component type of the 1st ValidationT2- component type of the 2nd ValidationT3- component type of the 3rd ValidationT4- component type of the 4th ValidationT5- component type of the 5th ValidationT6- component type of the 6th ValidationT7- component type of the 7th Validation- Parameters:
ts1- the 1st Validationts2- the 2nd Validationts3- the 3rd Validationts4- the 4th Validationts5- the 5th Validationts6- the 6th Validationts7- the 7th Validation- Returns:
- a new
For-comprehension of arity 7
-
For
public static <L,T1, API.For8Validation<L,T2, T3, T4, T5, T6, T7, T8> T1, ForT2, T3, T4, T5, T6, T7, T8> (@NonNull Validation<L, T1> ts1, @NonNull Validation<L, T2> ts2, @NonNull Validation<L, T3> ts3, @NonNull Validation<L, T4> ts4, @NonNull Validation<L, T5> ts5, @NonNull Validation<L, T6> ts6, @NonNull Validation<L, T7> ts7, @NonNull Validation<L, T8> ts8) Creates aFor-comprehension of 8 Validations.- Type Parameters:
L- left-hand type of all ValidationsT1- component type of the 1st ValidationT2- component type of the 2nd ValidationT3- component type of the 3rd ValidationT4- component type of the 4th ValidationT5- component type of the 5th ValidationT6- component type of the 6th ValidationT7- component type of the 7th ValidationT8- component type of the 8th Validation- Parameters:
ts1- the 1st Validationts2- the 2nd Validationts3- the 3rd Validationts4- the 4th Validationts5- the 5th Validationts6- the 6th Validationts7- the 7th Validationts8- the 8th Validation- Returns:
- a new
For-comprehension of arity 8
-
For
public static <T1,T2> API.ForLazy2Option<T1,T2> For(@NonNull Option<T1> ts1, @NonNull Function1<? super T1, Option<T2>> ts2) Creates a lazyFor-comprehension over two Options.The first argument (
ts1) is the initial Option. Each subsequent argument (ts2..ts2) is a function that receives all values bound so far and returns the next Option. This method only constructs the lazy comprehension; underlying effects are evaluated whenyield(...)is invoked.- Type Parameters:
T1- the component type of the 1st OptionT2- the component type of the 2nd Option- Parameters:
ts1- the 1st Optionts2- the 2nd Option- Returns:
- a new
ForLazy2Optionbuilder of arity 2 - Throws:
NullPointerException- if any argument isnull
-
For
public static <T1,T2, API.ForLazy3Option<T1,T3> T2, ForT3> (@NonNull Option<T1> ts1, @NonNull Function1<? super T1, Option<T2>> ts2, @NonNull Function2<? super T1, ? super T2, Option<T3>> ts3) Creates a lazyFor-comprehension over three Options.The first argument (
ts1) is the initial Option. Each subsequent argument (ts2..ts3) is a function that receives all values bound so far and returns the next Option. This method only constructs the lazy comprehension; underlying effects are evaluated whenyield(...)is invoked.- Type Parameters:
T1- the component type of the 1st OptionT2- the component type of the 2nd OptionT3- the component type of the 3rd Option- Parameters:
ts1- the 1st Optionts2- the 2nd Optionts3- the 3rd Option- Returns:
- a new
ForLazy3Optionbuilder of arity 3 - Throws:
NullPointerException- if any argument isnull
-
For
public static <T1,T2, API.ForLazy4Option<T1,T3, T4> T2, ForT3, T4> (@NonNull Option<T1> ts1, @NonNull Function1<? super T1, Option<T2>> ts2, @NonNull Function2<? super T1, ? super T2, Option<T3>> ts3, @NonNull Function3<? super T1, ? super T2, ? super T3, Option<T4>> ts4) Creates a lazyFor-comprehension over 4 Options.The first argument (
ts1) is the initial Option. Each subsequent argument (ts2..ts4) is a function that receives all values bound so far and returns the next Option. This method only constructs the lazy comprehension; underlying effects are evaluated whenyield(...)is invoked.- Type Parameters:
T1- the component type of the 1st OptionT2- the component type of the 2nd OptionT3- the component type of the 3rd OptionT4- the component type of the 4th Option- Parameters:
ts1- the 1st Optionts2- the 2nd Optionts3- the 3rd Optionts4- the 4th Option- Returns:
- a new
ForLazy4Optionbuilder of arity 4 - Throws:
NullPointerException- if any argument isnull
-
For
public static <T1,T2, API.ForLazy5Option<T1,T3, T4, T5> T2, ForT3, T4, T5> (@NonNull Option<T1> ts1, @NonNull Function1<? super T1, Option<T2>> ts2, @NonNull Function2<? super T1, ? super T2, Option<T3>> ts3, @NonNull Function3<? super T1, ? super T2, ? super T3, Option<T4>> ts4, @NonNull Function4<? super T1, ? super T2, ? super T3, ? super T4, Option<T5>> ts5) Creates a lazyFor-comprehension over 5 Options.The first argument (
ts1) is the initial Option. Each subsequent argument (ts2..ts5) is a function that receives all values bound so far and returns the next Option. This method only constructs the lazy comprehension; underlying effects are evaluated whenyield(...)is invoked.- Type Parameters:
T1- the component type of the 1st OptionT2- the component type of the 2nd OptionT3- the component type of the 3rd OptionT4- the component type of the 4th OptionT5- the component type of the 5th Option- Parameters:
ts1- the 1st Optionts2- the 2nd Optionts3- the 3rd Optionts4- the 4th Optionts5- the 5th Option- Returns:
- a new
ForLazy5Optionbuilder of arity 5 - Throws:
NullPointerException- if any argument isnull
-
For
public static <T1,T2, API.ForLazy6Option<T1,T3, T4, T5, T6> T2, ForT3, T4, T5, T6> (@NonNull Option<T1> ts1, @NonNull Function1<? super T1, Option<T2>> ts2, @NonNull Function2<? super T1, ? super T2, Option<T3>> ts3, @NonNull Function3<? super T1, ? super T2, ? super T3, Option<T4>> ts4, @NonNull Function4<? super T1, ? super T2, ? super T3, ? super T4, Option<T5>> ts5, @NonNull Function5<? super T1, ? super T2, ? super T3, ? super T4, ? super T5, Option<T6>> ts6) Creates a lazyFor-comprehension over 6 Options.The first argument (
ts1) is the initial Option. Each subsequent argument (ts2..ts6) is a function that receives all values bound so far and returns the next Option. This method only constructs the lazy comprehension; underlying effects are evaluated whenyield(...)is invoked.- Type Parameters:
T1- the component type of the 1st OptionT2- the component type of the 2nd OptionT3- the component type of the 3rd OptionT4- the component type of the 4th OptionT5- the component type of the 5th OptionT6- the component type of the 6th Option- Parameters:
ts1- the 1st Optionts2- the 2nd Optionts3- the 3rd Optionts4- the 4th Optionts5- the 5th Optionts6- the 6th Option- Returns:
- a new
ForLazy6Optionbuilder of arity 6 - Throws:
NullPointerException- if any argument isnull
-
For
public static <T1,T2, API.ForLazy7Option<T1,T3, T4, T5, T6, T7> T2, ForT3, T4, T5, T6, T7> (@NonNull Option<T1> ts1, @NonNull Function1<? super T1, Option<T2>> ts2, @NonNull Function2<? super T1, ? super T2, Option<T3>> ts3, @NonNull Function3<? super T1, ? super T2, ? super T3, Option<T4>> ts4, @NonNull Function4<? super T1, ? super T2, ? super T3, ? super T4, Option<T5>> ts5, @NonNull Function5<? super T1, ? super T2, ? super T3, ? super T4, ? super T5, Option<T6>> ts6, @NonNull Function6<? super T1, ? super T2, ? super T3, ? super T4, ? super T5, ? super T6, Option<T7>> ts7) Creates a lazyFor-comprehension over 7 Options.The first argument (
ts1) is the initial Option. Each subsequent argument (ts2..ts7) is a function that receives all values bound so far and returns the next Option. This method only constructs the lazy comprehension; underlying effects are evaluated whenyield(...)is invoked.- Type Parameters:
T1- the component type of the 1st OptionT2- the component type of the 2nd OptionT3- the component type of the 3rd OptionT4- the component type of the 4th OptionT5- the component type of the 5th OptionT6- the component type of the 6th OptionT7- the component type of the 7th Option- Parameters:
ts1- the 1st Optionts2- the 2nd Optionts3- the 3rd Optionts4- the 4th Optionts5- the 5th Optionts6- the 6th Optionts7- the 7th Option- Returns:
- a new
ForLazy7Optionbuilder of arity 7 - Throws:
NullPointerException- if any argument isnull
-
For
public static <T1,T2, API.ForLazy8Option<T1,T3, T4, T5, T6, T7, T8> T2, ForT3, T4, T5, T6, T7, T8> (@NonNull Option<T1> ts1, @NonNull Function1<? super T1, Option<T2>> ts2, @NonNull Function2<? super T1, ? super T2, Option<T3>> ts3, @NonNull Function3<? super T1, ? super T2, ? super T3, Option<T4>> ts4, @NonNull Function4<? super T1, ? super T2, ? super T3, ? super T4, Option<T5>> ts5, @NonNull Function5<? super T1, ? super T2, ? super T3, ? super T4, ? super T5, Option<T6>> ts6, @NonNull Function6<? super T1, ? super T2, ? super T3, ? super T4, ? super T5, ? super T6, Option<T7>> ts7, @NonNull Function7<? super T1, ? super T2, ? super T3, ? super T4, ? super T5, ? super T6, ? super T7, Option<T8>> ts8) Creates a lazyFor-comprehension over 8 Options.The first argument (
ts1) is the initial Option. Each subsequent argument (ts2..ts8) is a function that receives all values bound so far and returns the next Option. This method only constructs the lazy comprehension; underlying effects are evaluated whenyield(...)is invoked.- Type Parameters:
T1- the component type of the 1st OptionT2- the component type of the 2nd OptionT3- the component type of the 3rd OptionT4- the component type of the 4th OptionT5- the component type of the 5th OptionT6- the component type of the 6th OptionT7- the component type of the 7th OptionT8- the component type of the 8th Option- Parameters:
ts1- the 1st Optionts2- the 2nd Optionts3- the 3rd Optionts4- the 4th Optionts5- the 5th Optionts6- the 6th Optionts7- the 7th Optionts8- the 8th Option- Returns:
- a new
ForLazy8Optionbuilder of arity 8 - Throws:
NullPointerException- if any argument isnull
-
For
public static <T1,T2> API.ForLazy2Future<T1,T2> For(@NonNull Future<T1> ts1, @NonNull Function1<? super T1, Future<T2>> ts2) Creates a lazyFor-comprehension over two Futures.The first argument (
ts1) is the initial Future. Each subsequent argument (ts2..ts2) is a function that receives all values bound so far and returns the next Future. This method only constructs the lazy comprehension; underlying effects are evaluated whenyield(...)is invoked.- Type Parameters:
T1- the component type of the 1st FutureT2- the component type of the 2nd Future- Parameters:
ts1- the 1st Futurets2- the 2nd Future- Returns:
- a new
ForLazy2Futurebuilder of arity 2 - Throws:
NullPointerException- if any argument isnull
-
For
public static <T1,T2, API.ForLazy3Future<T1,T3> T2, ForT3> (@NonNull Future<T1> ts1, @NonNull Function1<? super T1, Future<T2>> ts2, @NonNull Function2<? super T1, ? super T2, Future<T3>> ts3) Creates a lazyFor-comprehension over three Futures.The first argument (
ts1) is the initial Future. Each subsequent argument (ts2..ts3) is a function that receives all values bound so far and returns the next Future. This method only constructs the lazy comprehension; underlying effects are evaluated whenyield(...)is invoked.- Type Parameters:
T1- the component type of the 1st FutureT2- the component type of the 2nd FutureT3- the component type of the 3rd Future- Parameters:
ts1- the 1st Futurets2- the 2nd Futurets3- the 3rd Future- Returns:
- a new
ForLazy3Futurebuilder of arity 3 - Throws:
NullPointerException- if any argument isnull
-
For
public static <T1,T2, API.ForLazy4Future<T1,T3, T4> T2, ForT3, T4> (@NonNull Future<T1> ts1, @NonNull Function1<? super T1, Future<T2>> ts2, @NonNull Function2<? super T1, ? super T2, Future<T3>> ts3, @NonNull Function3<? super T1, ? super T2, ? super T3, Future<T4>> ts4) Creates a lazyFor-comprehension over 4 Futures.The first argument (
ts1) is the initial Future. Each subsequent argument (ts2..ts4) is a function that receives all values bound so far and returns the next Future. This method only constructs the lazy comprehension; underlying effects are evaluated whenyield(...)is invoked.- 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 Future- Parameters:
ts1- the 1st Futurets2- the 2nd Futurets3- the 3rd Futurets4- the 4th Future- Returns:
- a new
ForLazy4Futurebuilder of arity 4 - Throws:
NullPointerException- if any argument isnull
-
For
public static <T1,T2, API.ForLazy5Future<T1,T3, T4, T5> T2, ForT3, T4, T5> (@NonNull Future<T1> ts1, @NonNull Function1<? super T1, Future<T2>> ts2, @NonNull Function2<? super T1, ? super T2, Future<T3>> ts3, @NonNull Function3<? super T1, ? super T2, ? super T3, Future<T4>> ts4, @NonNull Function4<? super T1, ? super T2, ? super T3, ? super T4, Future<T5>> ts5) Creates a lazyFor-comprehension over 5 Futures.The first argument (
ts1) is the initial Future. Each subsequent argument (ts2..ts5) is a function that receives all values bound so far and returns the next Future. This method only constructs the lazy comprehension; underlying effects are evaluated whenyield(...)is invoked.- 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 Future- Parameters:
ts1- the 1st Futurets2- the 2nd Futurets3- the 3rd Futurets4- the 4th Futurets5- the 5th Future- Returns:
- a new
ForLazy5Futurebuilder of arity 5 - Throws:
NullPointerException- if any argument isnull
-
For
public static <T1,T2, API.ForLazy6Future<T1,T3, T4, T5, T6> T2, ForT3, T4, T5, T6> (@NonNull Future<T1> ts1, @NonNull Function1<? super T1, Future<T2>> ts2, @NonNull Function2<? super T1, ? super T2, Future<T3>> ts3, @NonNull Function3<? super T1, ? super T2, ? super T3, Future<T4>> ts4, @NonNull Function4<? super T1, ? super T2, ? super T3, ? super T4, Future<T5>> ts5, @NonNull Function5<? super T1, ? super T2, ? super T3, ? super T4, ? super T5, Future<T6>> ts6) Creates a lazyFor-comprehension over 6 Futures.The first argument (
ts1) is the initial Future. Each subsequent argument (ts2..ts6) is a function that receives all values bound so far and returns the next Future. This method only constructs the lazy comprehension; underlying effects are evaluated whenyield(...)is invoked.- 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 Future- Parameters:
ts1- the 1st Futurets2- the 2nd Futurets3- the 3rd Futurets4- the 4th Futurets5- the 5th Futurets6- the 6th Future- Returns:
- a new
ForLazy6Futurebuilder of arity 6 - Throws:
NullPointerException- if any argument isnull
-
For
public static <T1,T2, API.ForLazy7Future<T1,T3, T4, T5, T6, T7> T2, ForT3, T4, T5, T6, T7> (@NonNull Future<T1> ts1, @NonNull Function1<? super T1, Future<T2>> ts2, @NonNull Function2<? super T1, ? super T2, Future<T3>> ts3, @NonNull Function3<? super T1, ? super T2, ? super T3, Future<T4>> ts4, @NonNull Function4<? super T1, ? super T2, ? super T3, ? super T4, Future<T5>> ts5, @NonNull Function5<? super T1, ? super T2, ? super T3, ? super T4, ? super T5, Future<T6>> ts6, @NonNull Function6<? super T1, ? super T2, ? super T3, ? super T4, ? super T5, ? super T6, Future<T7>> ts7) Creates a lazyFor-comprehension over 7 Futures.The first argument (
ts1) is the initial Future. Each subsequent argument (ts2..ts7) is a function that receives all values bound so far and returns the next Future. This method only constructs the lazy comprehension; underlying effects are evaluated whenyield(...)is invoked.- 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 Future- Parameters:
ts1- the 1st Futurets2- the 2nd Futurets3- the 3rd Futurets4- the 4th Futurets5- the 5th Futurets6- the 6th Futurets7- the 7th Future- Returns:
- a new
ForLazy7Futurebuilder of arity 7 - Throws:
NullPointerException- if any argument isnull
-
For
public static <T1,T2, API.ForLazy8Future<T1,T3, T4, T5, T6, T7, T8> T2, ForT3, T4, T5, T6, T7, T8> (@NonNull Future<T1> ts1, @NonNull Function1<? super T1, Future<T2>> ts2, @NonNull Function2<? super T1, ? super T2, Future<T3>> ts3, @NonNull Function3<? super T1, ? super T2, ? super T3, Future<T4>> ts4, @NonNull Function4<? super T1, ? super T2, ? super T3, ? super T4, Future<T5>> ts5, @NonNull Function5<? super T1, ? super T2, ? super T3, ? super T4, ? super T5, Future<T6>> ts6, @NonNull Function6<? super T1, ? super T2, ? super T3, ? super T4, ? super T5, ? super T6, Future<T7>> ts7, @NonNull Function7<? super T1, ? super T2, ? super T3, ? super T4, ? super T5, ? super T6, ? super T7, Future<T8>> ts8) Creates a lazyFor-comprehension over 8 Futures.The first argument (
ts1) is the initial Future. Each subsequent argument (ts2..ts8) is a function that receives all values bound so far and returns the next Future. This method only constructs the lazy comprehension; underlying effects are evaluated whenyield(...)is invoked.- 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- Parameters:
ts1- the 1st Futurets2- the 2nd Futurets3- the 3rd Futurets4- the 4th Futurets5- the 5th Futurets6- the 6th Futurets7- the 7th Futurets8- the 8th Future- Returns:
- a new
ForLazy8Futurebuilder of arity 8 - Throws:
NullPointerException- if any argument isnull
-
For
public static <T1,T2> API.ForLazy2Try<T1,T2> For(@NonNull Try<T1> ts1, @NonNull Function1<? super T1, Try<T2>> ts2) Creates a lazyFor-comprehension over two Trys.The first argument (
ts1) is the initial Try. Each subsequent argument (ts2..ts2) is a function that receives all values bound so far and returns the next Try. This method only constructs the lazy comprehension; underlying effects are evaluated whenyield(...)is invoked.- Type Parameters:
T1- the component type of the 1st TryT2- the component type of the 2nd Try- Parameters:
ts1- the 1st Tryts2- the 2nd Try- Returns:
- a new
ForLazy2Trybuilder of arity 2 - Throws:
NullPointerException- if any argument isnull
-
For
public static <T1,T2, API.ForLazy3Try<T1,T3> T2, ForT3> (@NonNull Try<T1> ts1, @NonNull Function1<? super T1, Try<T2>> ts2, @NonNull Function2<? super T1, ? super T2, Try<T3>> ts3) Creates a lazyFor-comprehension over three Trys.The first argument (
ts1) is the initial Try. Each subsequent argument (ts2..ts3) is a function that receives all values bound so far and returns the next Try. This method only constructs the lazy comprehension; underlying effects are evaluated whenyield(...)is invoked.- Type Parameters:
T1- the component type of the 1st TryT2- the component type of the 2nd TryT3- the component type of the 3rd Try- Parameters:
ts1- the 1st Tryts2- the 2nd Tryts3- the 3rd Try- Returns:
- a new
ForLazy3Trybuilder of arity 3 - Throws:
NullPointerException- if any argument isnull
-
For
public static <T1,T2, API.ForLazy4Try<T1,T3, T4> T2, ForT3, T4> (@NonNull Try<T1> ts1, @NonNull Function1<? super T1, Try<T2>> ts2, @NonNull Function2<? super T1, ? super T2, Try<T3>> ts3, @NonNull Function3<? super T1, ? super T2, ? super T3, Try<T4>> ts4) Creates a lazyFor-comprehension over 4 Trys.The first argument (
ts1) is the initial Try. Each subsequent argument (ts2..ts4) is a function that receives all values bound so far and returns the next Try. This method only constructs the lazy comprehension; underlying effects are evaluated whenyield(...)is invoked.- 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 Try- Parameters:
ts1- the 1st Tryts2- the 2nd Tryts3- the 3rd Tryts4- the 4th Try- Returns:
- a new
ForLazy4Trybuilder of arity 4 - Throws:
NullPointerException- if any argument isnull
-
For
public static <T1,T2, API.ForLazy5Try<T1,T3, T4, T5> T2, ForT3, T4, T5> (@NonNull Try<T1> ts1, @NonNull Function1<? super T1, Try<T2>> ts2, @NonNull Function2<? super T1, ? super T2, Try<T3>> ts3, @NonNull Function3<? super T1, ? super T2, ? super T3, Try<T4>> ts4, @NonNull Function4<? super T1, ? super T2, ? super T3, ? super T4, Try<T5>> ts5) Creates a lazyFor-comprehension over 5 Trys.The first argument (
ts1) is the initial Try. Each subsequent argument (ts2..ts5) is a function that receives all values bound so far and returns the next Try. This method only constructs the lazy comprehension; underlying effects are evaluated whenyield(...)is invoked.- 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 Try- Parameters:
ts1- the 1st Tryts2- the 2nd Tryts3- the 3rd Tryts4- the 4th Tryts5- the 5th Try- Returns:
- a new
ForLazy5Trybuilder of arity 5 - Throws:
NullPointerException- if any argument isnull
-
For
public static <T1,T2, API.ForLazy6Try<T1,T3, T4, T5, T6> T2, ForT3, T4, T5, T6> (@NonNull Try<T1> ts1, @NonNull Function1<? super T1, Try<T2>> ts2, @NonNull Function2<? super T1, ? super T2, Try<T3>> ts3, @NonNull Function3<? super T1, ? super T2, ? super T3, Try<T4>> ts4, @NonNull Function4<? super T1, ? super T2, ? super T3, ? super T4, Try<T5>> ts5, @NonNull Function5<? super T1, ? super T2, ? super T3, ? super T4, ? super T5, Try<T6>> ts6) Creates a lazyFor-comprehension over 6 Trys.The first argument (
ts1) is the initial Try. Each subsequent argument (ts2..ts6) is a function that receives all values bound so far and returns the next Try. This method only constructs the lazy comprehension; underlying effects are evaluated whenyield(...)is invoked.- 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- Parameters:
ts1- the 1st Tryts2- the 2nd Tryts3- the 3rd Tryts4- the 4th Tryts5- the 5th Tryts6- the 6th Try- Returns:
- a new
ForLazy6Trybuilder of arity 6 - Throws:
NullPointerException- if any argument isnull
-
For
public static <T1,T2, API.ForLazy7Try<T1,T3, T4, T5, T6, T7> T2, ForT3, T4, T5, T6, T7> (@NonNull Try<T1> ts1, @NonNull Function1<? super T1, Try<T2>> ts2, @NonNull Function2<? super T1, ? super T2, Try<T3>> ts3, @NonNull Function3<? super T1, ? super T2, ? super T3, Try<T4>> ts4, @NonNull Function4<? super T1, ? super T2, ? super T3, ? super T4, Try<T5>> ts5, @NonNull Function5<? super T1, ? super T2, ? super T3, ? super T4, ? super T5, Try<T6>> ts6, @NonNull Function6<? super T1, ? super T2, ? super T3, ? super T4, ? super T5, ? super T6, Try<T7>> ts7) Creates a lazyFor-comprehension over 7 Trys.The first argument (
ts1) is the initial Try. Each subsequent argument (ts2..ts7) is a function that receives all values bound so far and returns the next Try. This method only constructs the lazy comprehension; underlying effects are evaluated whenyield(...)is invoked.- 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 TryT7- the component type of the 7th Try- Parameters:
ts1- the 1st Tryts2- the 2nd Tryts3- the 3rd Tryts4- the 4th Tryts5- the 5th Tryts6- the 6th Tryts7- the 7th Try- Returns:
- a new
ForLazy7Trybuilder of arity 7 - Throws:
NullPointerException- if any argument isnull
-
For
public static <T1,T2, API.ForLazy8Try<T1,T3, T4, T5, T6, T7, T8> T2, ForT3, T4, T5, T6, T7, T8> (@NonNull Try<T1> ts1, @NonNull Function1<? super T1, Try<T2>> ts2, @NonNull Function2<? super T1, ? super T2, Try<T3>> ts3, @NonNull Function3<? super T1, ? super T2, ? super T3, Try<T4>> ts4, @NonNull Function4<? super T1, ? super T2, ? super T3, ? super T4, Try<T5>> ts5, @NonNull Function5<? super T1, ? super T2, ? super T3, ? super T4, ? super T5, Try<T6>> ts6, @NonNull Function6<? super T1, ? super T2, ? super T3, ? super T4, ? super T5, ? super T6, Try<T7>> ts7, @NonNull Function7<? super T1, ? super T2, ? super T3, ? super T4, ? super T5, ? super T6, ? super T7, Try<T8>> ts8) Creates a lazyFor-comprehension over 8 Trys.The first argument (
ts1) is the initial Try. Each subsequent argument (ts2..ts8) is a function that receives all values bound so far and returns the next Try. This method only constructs the lazy comprehension; underlying effects are evaluated whenyield(...)is invoked.- 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 TryT7- the component type of the 7th TryT8- the component type of the 8th Try- Parameters:
ts1- the 1st Tryts2- the 2nd Tryts3- the 3rd Tryts4- the 4th Tryts5- the 5th Tryts6- the 6th Tryts7- the 7th Tryts8- the 8th Try- Returns:
- a new
ForLazy8Trybuilder of arity 8 - Throws:
NullPointerException- if any argument isnull
-
For
public static <T1,T2> API.ForLazy2List<T1,T2> For(@NonNull List<T1> ts1, @NonNull Function1<? super T1, List<T2>> ts2) Creates a lazyFor-comprehension over two Lists.The first argument (
ts1) is the initial List. Each subsequent argument (ts2..ts2) is a function that receives all values bound so far and returns the next List. This method only constructs the lazy comprehension; underlying effects are evaluated whenyield(...)is invoked.- Type Parameters:
T1- the component type of the 1st ListT2- the component type of the 2nd List- Parameters:
ts1- the 1st Listts2- the 2nd List- Returns:
- a new
ForLazy2Listbuilder of arity 2 - Throws:
NullPointerException- if any argument isnull
-
For
public static <T1,T2, API.ForLazy3List<T1,T3> T2, ForT3> (@NonNull List<T1> ts1, @NonNull Function1<? super T1, List<T2>> ts2, @NonNull Function2<? super T1, ? super T2, List<T3>> ts3) Creates a lazyFor-comprehension over three Lists.The first argument (
ts1) is the initial List. Each subsequent argument (ts2..ts3) is a function that receives all values bound so far and returns the next List. This method only constructs the lazy comprehension; underlying effects are evaluated whenyield(...)is invoked.- Type Parameters:
T1- the component type of the 1st ListT2- the component type of the 2nd ListT3- the component type of the 3rd List- Parameters:
ts1- the 1st Listts2- the 2nd Listts3- the 3rd List- Returns:
- a new
ForLazy3Listbuilder of arity 3 - Throws:
NullPointerException- if any argument isnull
-
For
public static <T1,T2, API.ForLazy4List<T1,T3, T4> T2, ForT3, T4> (@NonNull List<T1> ts1, @NonNull Function1<? super T1, List<T2>> ts2, @NonNull Function2<? super T1, ? super T2, List<T3>> ts3, @NonNull Function3<? super T1, ? super T2, ? super T3, List<T4>> ts4) Creates a lazyFor-comprehension over 4 Lists.The first argument (
ts1) is the initial List. Each subsequent argument (ts2..ts4) is a function that receives all values bound so far and returns the next List. This method only constructs the lazy comprehension; underlying effects are evaluated whenyield(...)is invoked.- Type Parameters:
T1- the component type of the 1st ListT2- the component type of the 2nd ListT3- the component type of the 3rd ListT4- the component type of the 4th List- Parameters:
ts1- the 1st Listts2- the 2nd Listts3- the 3rd Listts4- the 4th List- Returns:
- a new
ForLazy4Listbuilder of arity 4 - Throws:
NullPointerException- if any argument isnull
-
For
public static <T1,T2, API.ForLazy5List<T1,T3, T4, T5> T2, ForT3, T4, T5> (@NonNull List<T1> ts1, @NonNull Function1<? super T1, List<T2>> ts2, @NonNull Function2<? super T1, ? super T2, List<T3>> ts3, @NonNull Function3<? super T1, ? super T2, ? super T3, List<T4>> ts4, @NonNull Function4<? super T1, ? super T2, ? super T3, ? super T4, List<T5>> ts5) Creates a lazyFor-comprehension over 5 Lists.The first argument (
ts1) is the initial List. Each subsequent argument (ts2..ts5) is a function that receives all values bound so far and returns the next List. This method only constructs the lazy comprehension; underlying effects are evaluated whenyield(...)is invoked.- Type Parameters:
T1- the component type of the 1st ListT2- the component type of the 2nd ListT3- the component type of the 3rd ListT4- the component type of the 4th ListT5- the component type of the 5th List- Parameters:
ts1- the 1st Listts2- the 2nd Listts3- the 3rd Listts4- the 4th Listts5- the 5th List- Returns:
- a new
ForLazy5Listbuilder of arity 5 - Throws:
NullPointerException- if any argument isnull
-
For
public static <T1,T2, API.ForLazy6List<T1,T3, T4, T5, T6> T2, ForT3, T4, T5, T6> (@NonNull List<T1> ts1, @NonNull Function1<? super T1, List<T2>> ts2, @NonNull Function2<? super T1, ? super T2, List<T3>> ts3, @NonNull Function3<? super T1, ? super T2, ? super T3, List<T4>> ts4, @NonNull Function4<? super T1, ? super T2, ? super T3, ? super T4, List<T5>> ts5, @NonNull Function5<? super T1, ? super T2, ? super T3, ? super T4, ? super T5, List<T6>> ts6) Creates a lazyFor-comprehension over 6 Lists.The first argument (
ts1) is the initial List. Each subsequent argument (ts2..ts6) is a function that receives all values bound so far and returns the next List. This method only constructs the lazy comprehension; underlying effects are evaluated whenyield(...)is invoked.- Type Parameters:
T1- the component type of the 1st ListT2- the component type of the 2nd ListT3- the component type of the 3rd ListT4- the component type of the 4th ListT5- the component type of the 5th ListT6- the component type of the 6th List- Parameters:
ts1- the 1st Listts2- the 2nd Listts3- the 3rd Listts4- the 4th Listts5- the 5th Listts6- the 6th List- Returns:
- a new
ForLazy6Listbuilder of arity 6 - Throws:
NullPointerException- if any argument isnull
-
For
public static <T1,T2, API.ForLazy7List<T1,T3, T4, T5, T6, T7> T2, ForT3, T4, T5, T6, T7> (@NonNull List<T1> ts1, @NonNull Function1<? super T1, List<T2>> ts2, @NonNull Function2<? super T1, ? super T2, List<T3>> ts3, @NonNull Function3<? super T1, ? super T2, ? super T3, List<T4>> ts4, @NonNull Function4<? super T1, ? super T2, ? super T3, ? super T4, List<T5>> ts5, @NonNull Function5<? super T1, ? super T2, ? super T3, ? super T4, ? super T5, List<T6>> ts6, @NonNull Function6<? super T1, ? super T2, ? super T3, ? super T4, ? super T5, ? super T6, List<T7>> ts7) Creates a lazyFor-comprehension over 7 Lists.The first argument (
ts1) is the initial List. Each subsequent argument (ts2..ts7) is a function that receives all values bound so far and returns the next List. This method only constructs the lazy comprehension; underlying effects are evaluated whenyield(...)is invoked.- Type Parameters:
T1- the component type of the 1st ListT2- the component type of the 2nd ListT3- the component type of the 3rd ListT4- the component type of the 4th ListT5- the component type of the 5th ListT6- the component type of the 6th ListT7- the component type of the 7th List- Parameters:
ts1- the 1st Listts2- the 2nd Listts3- the 3rd Listts4- the 4th Listts5- the 5th Listts6- the 6th Listts7- the 7th List- Returns:
- a new
ForLazy7Listbuilder of arity 7 - Throws:
NullPointerException- if any argument isnull
-
For
public static <T1,T2, API.ForLazy8List<T1,T3, T4, T5, T6, T7, T8> T2, ForT3, T4, T5, T6, T7, T8> (@NonNull List<T1> ts1, @NonNull Function1<? super T1, List<T2>> ts2, @NonNull Function2<? super T1, ? super T2, List<T3>> ts3, @NonNull Function3<? super T1, ? super T2, ? super T3, List<T4>> ts4, @NonNull Function4<? super T1, ? super T2, ? super T3, ? super T4, List<T5>> ts5, @NonNull Function5<? super T1, ? super T2, ? super T3, ? super T4, ? super T5, List<T6>> ts6, @NonNull Function6<? super T1, ? super T2, ? super T3, ? super T4, ? super T5, ? super T6, List<T7>> ts7, @NonNull Function7<? super T1, ? super T2, ? super T3, ? super T4, ? super T5, ? super T6, ? super T7, List<T8>> ts8) Creates a lazyFor-comprehension over 8 Lists.The first argument (
ts1) is the initial List. Each subsequent argument (ts2..ts8) is a function that receives all values bound so far and returns the next List. This method only constructs the lazy comprehension; underlying effects are evaluated whenyield(...)is invoked.- Type Parameters:
T1- the component type of the 1st ListT2- the component type of the 2nd ListT3- the component type of the 3rd ListT4- the component type of the 4th ListT5- the component type of the 5th ListT6- the component type of the 6th ListT7- the component type of the 7th ListT8- the component type of the 8th List- Parameters:
ts1- the 1st Listts2- the 2nd Listts3- the 3rd Listts4- the 4th Listts5- the 5th Listts6- the 6th Listts7- the 7th Listts8- the 8th List- Returns:
- a new
ForLazy8Listbuilder of arity 8 - Throws:
NullPointerException- if any argument isnull
-
For
public static <L,T1, API.ForLazy2Either<L,T2> T1, ForT2> (@NonNull Either<L, T1> ts1, @NonNull Function1<? super T1, Either<L, T2>> ts2) Creates a lazyFor-comprehension over two Eithers.The first argument (
ts1) is the initial Either. Each subsequent argument (ts2..ts2) is a function that receives all values bound so far and returns the next Either. This method only constructs the lazy comprehension; underlying effects are evaluated whenyield(...)is invoked.- Type Parameters:
L- the common left-hand type of all EithersT1- the component type of the 1st EitherT2- the component type of the 2nd Either- Parameters:
ts1- the 1st Eitherts2- the 2nd Either- Returns:
- a new
ForLazy2Eitherbuilder of arity 2 - Throws:
NullPointerException- if any argument isnull
-
For
public static <L,T1, API.ForLazy3Either<L,T2, T3> T1, ForT2, T3> (@NonNull Either<L, T1> ts1, @NonNull Function1<? super T1, Either<L, T2>> ts2, @NonNull Function2<? super T1, ? super T2, Either<L, T3>> ts3) Creates a lazyFor-comprehension over three Eithers.The first argument (
ts1) is the initial Either. Each subsequent argument (ts2..ts3) is a function that receives all values bound so far and returns the next Either. This method only constructs the lazy comprehension; underlying effects are evaluated whenyield(...)is invoked.- 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 Either- Parameters:
ts1- the 1st Eitherts2- the 2nd Eitherts3- the 3rd Either- Returns:
- a new
ForLazy3Eitherbuilder of arity 3 - Throws:
NullPointerException- if any argument isnull
-
For
public static <L,T1, API.ForLazy4Either<L,T2, T3, T4> T1, ForT2, T3, T4> (@NonNull Either<L, T1> ts1, @NonNull Function1<? super T1, Either<L, T2>> ts2, @NonNull Function2<? super T1, ? super T2, Either<L, T3>> ts3, @NonNull Function3<? super T1, ? super T2, ? super T3, Either<L, T4>> ts4) Creates a lazyFor-comprehension over 4 Eithers.The first argument (
ts1) is the initial Either. Each subsequent argument (ts2..ts4) is a function that receives all values bound so far and returns the next Either. This method only constructs the lazy comprehension; underlying effects are evaluated whenyield(...)is invoked.- 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 Either- Parameters:
ts1- the 1st Eitherts2- the 2nd Eitherts3- the 3rd Eitherts4- the 4th Either- Returns:
- a new
ForLazy4Eitherbuilder of arity 4 - Throws:
NullPointerException- if any argument isnull
-
For
public static <L,T1, API.ForLazy5Either<L,T2, T3, T4, T5> T1, ForT2, T3, T4, T5> (@NonNull Either<L, T1> ts1, @NonNull Function1<? super T1, Either<L, T2>> ts2, @NonNull Function2<? super T1, ? super T2, Either<L, T3>> ts3, @NonNull Function3<? super T1, ? super T2, ? super T3, Either<L, T4>> ts4, @NonNull Function4<? super T1, ? super T2, ? super T3, ? super T4, Either<L, T5>> ts5) Creates a lazyFor-comprehension over 5 Eithers.The first argument (
ts1) is the initial Either. Each subsequent argument (ts2..ts5) is a function that receives all values bound so far and returns the next Either. This method only constructs the lazy comprehension; underlying effects are evaluated whenyield(...)is invoked.- 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- Parameters:
ts1- the 1st Eitherts2- the 2nd Eitherts3- the 3rd Eitherts4- the 4th Eitherts5- the 5th Either- Returns:
- a new
ForLazy5Eitherbuilder of arity 5 - Throws:
NullPointerException- if any argument isnull
-
For
public static <L,T1, API.ForLazy6Either<L,T2, T3, T4, T5, T6> T1, ForT2, T3, T4, T5, T6> (@NonNull Either<L, T1> ts1, @NonNull Function1<? super T1, Either<L, T2>> ts2, @NonNull Function2<? super T1, ? super T2, Either<L, T3>> ts3, @NonNull Function3<? super T1, ? super T2, ? super T3, Either<L, T4>> ts4, @NonNull Function4<? super T1, ? super T2, ? super T3, ? super T4, Either<L, T5>> ts5, @NonNull Function5<? super T1, ? super T2, ? super T3, ? super T4, ? super T5, Either<L, T6>> ts6) Creates a lazyFor-comprehension over 6 Eithers.The first argument (
ts1) is the initial Either. Each subsequent argument (ts2..ts6) is a function that receives all values bound so far and returns the next Either. This method only constructs the lazy comprehension; underlying effects are evaluated whenyield(...)is invoked.- 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- Parameters:
ts1- the 1st Eitherts2- the 2nd Eitherts3- the 3rd Eitherts4- the 4th Eitherts5- the 5th Eitherts6- the 6th Either- Returns:
- a new
ForLazy6Eitherbuilder of arity 6 - Throws:
NullPointerException- if any argument isnull
-
For
public static <L,T1, API.ForLazy7Either<L,T2, T3, T4, T5, T6, T7> T1, ForT2, T3, T4, T5, T6, T7> (@NonNull Either<L, T1> ts1, @NonNull Function1<? super T1, Either<L, T2>> ts2, @NonNull Function2<? super T1, ? super T2, Either<L, T3>> ts3, @NonNull Function3<? super T1, ? super T2, ? super T3, Either<L, T4>> ts4, @NonNull Function4<? super T1, ? super T2, ? super T3, ? super T4, Either<L, T5>> ts5, @NonNull Function5<? super T1, ? super T2, ? super T3, ? super T4, ? super T5, Either<L, T6>> ts6, @NonNull Function6<? super T1, ? super T2, ? super T3, ? super T4, ? super T5, ? super T6, Either<L, T7>> ts7) Creates a lazyFor-comprehension over 7 Eithers.The first argument (
ts1) is the initial Either. Each subsequent argument (ts2..ts7) is a function that receives all values bound so far and returns the next Either. This method only constructs the lazy comprehension; underlying effects are evaluated whenyield(...)is invoked.- 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 EitherT7- the component type of the 7th Either- Parameters:
ts1- the 1st Eitherts2- the 2nd Eitherts3- the 3rd Eitherts4- the 4th Eitherts5- the 5th Eitherts6- the 6th Eitherts7- the 7th Either- Returns:
- a new
ForLazy7Eitherbuilder of arity 7 - Throws:
NullPointerException- if any argument isnull
-
For
public static <L,T1, API.ForLazy8Either<L,T2, T3, T4, T5, T6, T7, T8> T1, ForT2, T3, T4, T5, T6, T7, T8> (@NonNull Either<L, T1> ts1, @NonNull Function1<? super T1, Either<L, T2>> ts2, @NonNull Function2<? super T1, ? super T2, Either<L, T3>> ts3, @NonNull Function3<? super T1, ? super T2, ? super T3, Either<L, T4>> ts4, @NonNull Function4<? super T1, ? super T2, ? super T3, ? super T4, Either<L, T5>> ts5, @NonNull Function5<? super T1, ? super T2, ? super T3, ? super T4, ? super T5, Either<L, T6>> ts6, @NonNull Function6<? super T1, ? super T2, ? super T3, ? super T4, ? super T5, ? super T6, Either<L, T7>> ts7, @NonNull Function7<? super T1, ? super T2, ? super T3, ? super T4, ? super T5, ? super T6, ? super T7, Either<L, T8>> ts8) Creates a lazyFor-comprehension over 8 Eithers.The first argument (
ts1) is the initial Either. Each subsequent argument (ts2..ts8) is a function that receives all values bound so far and returns the next Either. This method only constructs the lazy comprehension; underlying effects are evaluated whenyield(...)is invoked.- 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 EitherT7- the component type of the 7th EitherT8- the component type of the 8th Either- Parameters:
ts1- the 1st Eitherts2- the 2nd Eitherts3- the 3rd Eitherts4- the 4th Eitherts5- the 5th Eitherts6- the 6th Eitherts7- the 7th Eitherts8- the 8th Either- Returns:
- a new
ForLazy8Eitherbuilder of arity 8 - Throws:
NullPointerException- if any argument isnull
-
For
public static <L,T1, API.ForLazy2Validation<L,T2> T1, ForT2> (@NonNull Validation<L, T1> ts1, @NonNull Function1<? super T1, Validation<L, T2>> ts2) Creates a lazyFor-comprehension over two Validations.The first argument (
ts1) is the initial Validation. Each subsequent argument (ts2..ts2) is a function that receives all values bound so far and returns the next Validation. This method only constructs the lazy comprehension; underlying effects are evaluated whenyield(...)is invoked.- Type Parameters:
L- the common left-hand type of all ValidationsT1- the component type of the 1st ValidationT2- the component type of the 2nd Validation- Parameters:
ts1- the 1st Validationts2- the 2nd Validation- Returns:
- a new
ForLazy2Validationbuilder of arity 2 - Throws:
NullPointerException- if any argument isnull
-
For
public static <L,T1, API.ForLazy3Validation<L,T2, T3> T1, ForT2, T3> (@NonNull Validation<L, T1> ts1, @NonNull Function1<? super T1, Validation<L, T2>> ts2, @NonNull Function2<? super T1, ? super T2, Validation<L, T3>> ts3) Creates a lazyFor-comprehension over three Validations.The first argument (
ts1) is the initial Validation. Each subsequent argument (ts2..ts3) is a function that receives all values bound so far and returns the next Validation. This method only constructs the lazy comprehension; underlying effects are evaluated whenyield(...)is invoked.- 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 Validation- Parameters:
ts1- the 1st Validationts2- the 2nd Validationts3- the 3rd Validation- Returns:
- a new
ForLazy3Validationbuilder of arity 3 - Throws:
NullPointerException- if any argument isnull
-
For
public static <L,T1, API.ForLazy4Validation<L,T2, T3, T4> T1, ForT2, T3, T4> (@NonNull Validation<L, T1> ts1, @NonNull Function1<? super T1, Validation<L, T2>> ts2, @NonNull Function2<? super T1, ? super T2, Validation<L, T3>> ts3, @NonNull Function3<? super T1, ? super T2, ? super T3, Validation<L, T4>> ts4) Creates a lazyFor-comprehension over 4 Validations.The first argument (
ts1) is the initial Validation. Each subsequent argument (ts2..ts4) is a function that receives all values bound so far and returns the next Validation. This method only constructs the lazy comprehension; underlying effects are evaluated whenyield(...)is invoked.- 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 Validation- Parameters:
ts1- the 1st Validationts2- the 2nd Validationts3- the 3rd Validationts4- the 4th Validation- Returns:
- a new
ForLazy4Validationbuilder of arity 4 - Throws:
NullPointerException- if any argument isnull
-
For
public static <L,T1, API.ForLazy5Validation<L,T2, T3, T4, T5> T1, ForT2, T3, T4, T5> (@NonNull Validation<L, T1> ts1, @NonNull Function1<? super T1, Validation<L, T2>> ts2, @NonNull Function2<? super T1, ? super T2, Validation<L, T3>> ts3, @NonNull Function3<? super T1, ? super T2, ? super T3, Validation<L, T4>> ts4, @NonNull Function4<? super T1, ? super T2, ? super T3, ? super T4, Validation<L, T5>> ts5) Creates a lazyFor-comprehension over 5 Validations.The first argument (
ts1) is the initial Validation. Each subsequent argument (ts2..ts5) is a function that receives all values bound so far and returns the next Validation. This method only constructs the lazy comprehension; underlying effects are evaluated whenyield(...)is invoked.- 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 Validation- Parameters:
ts1- the 1st Validationts2- the 2nd Validationts3- the 3rd Validationts4- the 4th Validationts5- the 5th Validation- Returns:
- a new
ForLazy5Validationbuilder of arity 5 - Throws:
NullPointerException- if any argument isnull
-
For
public static <L,T1, API.ForLazy6Validation<L,T2, T3, T4, T5, T6> T1, ForT2, T3, T4, T5, T6> (@NonNull Validation<L, T1> ts1, @NonNull Function1<? super T1, Validation<L, T2>> ts2, @NonNull Function2<? super T1, ? super T2, Validation<L, T3>> ts3, @NonNull Function3<? super T1, ? super T2, ? super T3, Validation<L, T4>> ts4, @NonNull Function4<? super T1, ? super T2, ? super T3, ? super T4, Validation<L, T5>> ts5, @NonNull Function5<? super T1, ? super T2, ? super T3, ? super T4, ? super T5, Validation<L, T6>> ts6) Creates a lazyFor-comprehension over 6 Validations.The first argument (
ts1) is the initial Validation. Each subsequent argument (ts2..ts6) is a function that receives all values bound so far and returns the next Validation. This method only constructs the lazy comprehension; underlying effects are evaluated whenyield(...)is invoked.- 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 Validation- Parameters:
ts1- the 1st Validationts2- the 2nd Validationts3- the 3rd Validationts4- the 4th Validationts5- the 5th Validationts6- the 6th Validation- Returns:
- a new
ForLazy6Validationbuilder of arity 6 - Throws:
NullPointerException- if any argument isnull
-
For
public static <L,T1, API.ForLazy7Validation<L,T2, T3, T4, T5, T6, T7> T1, ForT2, T3, T4, T5, T6, T7> (@NonNull Validation<L, T1> ts1, @NonNull Function1<? super T1, Validation<L, T2>> ts2, @NonNull Function2<? super T1, ? super T2, Validation<L, T3>> ts3, @NonNull Function3<? super T1, ? super T2, ? super T3, Validation<L, T4>> ts4, @NonNull Function4<? super T1, ? super T2, ? super T3, ? super T4, Validation<L, T5>> ts5, @NonNull Function5<? super T1, ? super T2, ? super T3, ? super T4, ? super T5, Validation<L, T6>> ts6, @NonNull Function6<? super T1, ? super T2, ? super T3, ? super T4, ? super T5, ? super T6, Validation<L, T7>> ts7) Creates a lazyFor-comprehension over 7 Validations.The first argument (
ts1) is the initial Validation. Each subsequent argument (ts2..ts7) is a function that receives all values bound so far and returns the next Validation. This method only constructs the lazy comprehension; underlying effects are evaluated whenyield(...)is invoked.- 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- Parameters:
ts1- the 1st Validationts2- the 2nd Validationts3- the 3rd Validationts4- the 4th Validationts5- the 5th Validationts6- the 6th Validationts7- the 7th Validation- Returns:
- a new
ForLazy7Validationbuilder of arity 7 - Throws:
NullPointerException- if any argument isnull
-
For
public static <L,T1, API.ForLazy8Validation<L,T2, T3, T4, T5, T6, T7, T8> T1, ForT2, T3, T4, T5, T6, T7, T8> (@NonNull Validation<L, T1> ts1, @NonNull Function1<? super T1, Validation<L, T2>> ts2, @NonNull Function2<? super T1, ? super T2, Validation<L, T3>> ts3, @NonNull Function3<? super T1, ? super T2, ? super T3, Validation<L, T4>> ts4, @NonNull Function4<? super T1, ? super T2, ? super T3, ? super T4, Validation<L, T5>> ts5, @NonNull Function5<? super T1, ? super T2, ? super T3, ? super T4, ? super T5, Validation<L, T6>> ts6, @NonNull Function6<? super T1, ? super T2, ? super T3, ? super T4, ? super T5, ? super T6, Validation<L, T7>> ts7, @NonNull Function7<? super T1, ? super T2, ? super T3, ? super T4, ? super T5, ? super T6, ? super T7, Validation<L, T8>> ts8) Creates a lazyFor-comprehension over 8 Validations.The first argument (
ts1) is the initial Validation. Each subsequent argument (ts2..ts8) is a function that receives all values bound so far and returns the next Validation. This method only constructs the lazy comprehension; underlying effects are evaluated whenyield(...)is invoked.- 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 ValidationT8- the component type of the 8th Validation- Parameters:
ts1- the 1st Validationts2- the 2nd Validationts3- the 3rd Validationts4- the 4th Validationts5- the 5th Validationts6- the 6th Validationts7- the 7th Validationts8- the 8th Validation- Returns:
- a new
ForLazy8Validationbuilder of arity 8 - Throws:
NullPointerException- if any argument isnull
-
Match
Entry point of the match API.- Type Parameters:
T- type of the value- Parameters:
value- a value to be matched- Returns:
- a new
Matchinstance
-
Case
@GwtIncompatible public static <T,R> API.Match.Case<T,R> Case(@NonNull API.Match.Pattern0<T> pattern, @NonNull Function<? super T, ? extends R> f) - Type Parameters:
T- Type of the value being matchedR- Return value type- Parameters:
pattern- Pattern to matchf- Matched value consumer- Returns:
- new Case0
-
Case
@GwtIncompatible public static <T,R> API.Match.Case<T,R> Case(@NonNull API.Match.Pattern0<T> pattern, @NonNull Supplier<? extends R> supplier) - Type Parameters:
T- Type of the value being matchedR- Return value type- Parameters:
pattern- Pattern to matchsupplier- Matched value supplier- Returns:
- new Case0
-
Case
@GwtIncompatible public static <T,R> API.Match.Case<T,R> Case(@NonNull API.Match.Pattern0<T> pattern, R retVal) Returns aAPI.Match.Case0instance for a specificAPI.Match.Pattern0and a constant value- Type Parameters:
T- Type of the value being matchedR- Return value type- Parameters:
pattern- Pattern to matchretVal- Constant value to return- Returns:
- new Case0
-
Case
@GwtIncompatible public static <T,T1, API.Match.Case<T,R> R> Case(@NonNull API.Match.Pattern1<T, T1> pattern, @NonNull Function<? super T1, ? extends R> f) - Type Parameters:
T- Type of the value being matchedT1- Intermediate type 1 for the patternR- Return value type- Parameters:
pattern- Pattern to matchf- Matched value consumer- Returns:
- new Case1
-
Case
@GwtIncompatible public static <T,T1, API.Match.Case<T,R> R> Case(@NonNull API.Match.Pattern1<T, T1> pattern, @NonNull Supplier<? extends R> supplier) - Type Parameters:
T- Type of the value being matchedT1- Intermediate type 1 for the patternR- Return value type- Parameters:
pattern- Pattern to matchsupplier- Matched value supplier- Returns:
- new Case1
-
Case
@GwtIncompatible public static <T,T1, API.Match.Case<T,R> R> Case(@NonNull API.Match.Pattern1<T, T1> pattern, R retVal) Returns aAPI.Match.Case1instance for a specificAPI.Match.Pattern1and a constant value- Type Parameters:
T- Type of the value being matchedT1- Intermediate type 1 for the patternR- Return value type- Parameters:
pattern- Pattern to matchretVal- Constant value to return- Returns:
- new Case1
-
Case
@GwtIncompatible public static <T,T1, API.Match.Case<T,T2, R> R> Case(@NonNull API.Match.Pattern2<T, T1, T2> pattern, @NonNull BiFunction<? super T1, ? super T2, ? extends R> f) - Type Parameters:
T- Type of the value being matchedT1- Intermediate type 1 for the patternT2- Intermediate type 2 for the patternR- Return value type- Parameters:
pattern- Pattern to matchf- Matched value consumer- Returns:
- new Case2
-
Case
@GwtIncompatible public static <T,T1, API.Match.Case<T,T2, R> R> Case(@NonNull API.Match.Pattern2<T, T1, T2> pattern, @NonNull Supplier<? extends R> supplier) - Type Parameters:
T- Type of the value being matchedT1- Intermediate type 1 for the patternT2- Intermediate type 2 for the patternR- Return value type- Parameters:
pattern- Pattern to matchsupplier- Matched value supplier- Returns:
- new Case2
-
Case
@GwtIncompatible public static <T,T1, API.Match.Case<T,T2, R> R> Case(@NonNull API.Match.Pattern2<T, T1, T2> pattern, R retVal) Returns aAPI.Match.Case2instance for a specificAPI.Match.Pattern2and a constant value- Type Parameters:
T- Type of the value being matchedT1- Intermediate type 1 for the patternT2- Intermediate type 2 for the patternR- Return value type- Parameters:
pattern- Pattern to matchretVal- Constant value to return- Returns:
- new Case2
-
Case
@GwtIncompatible public static <T,T1, API.Match.Case<T,T2, T3, R> R> Case(@NonNull API.Match.Pattern3<T, T1, T2, T3> pattern, @NonNull Function3<? super T1, ? super T2, ? super T3, ? extends R> f) - Type Parameters:
T- Type of the value being matchedT1- Intermediate type 1 for the patternT2- Intermediate type 2 for the patternT3- Intermediate type 3 for the patternR- Return value type- Parameters:
pattern- Pattern to matchf- Matched value consumer- Returns:
- new Case3
-
Case
@GwtIncompatible public static <T,T1, API.Match.Case<T,T2, T3, R> R> Case(@NonNull API.Match.Pattern3<T, T1, T2, T3> pattern, @NonNull Supplier<? extends R> supplier) - Type Parameters:
T- Type of the value being matchedT1- Intermediate type 1 for the patternT2- Intermediate type 2 for the patternT3- Intermediate type 3 for the patternR- Return value type- Parameters:
pattern- Pattern to matchsupplier- Matched value supplier- Returns:
- new Case3
-
Case
@GwtIncompatible public static <T,T1, API.Match.Case<T,T2, T3, R> R> Case(@NonNull API.Match.Pattern3<T, T1, T2, T3> pattern, R retVal) Returns aAPI.Match.Case3instance for a specificAPI.Match.Pattern3and a constant value- Type Parameters:
T- Type of the value being matchedT1- Intermediate type 1 for the patternT2- Intermediate type 2 for the patternT3- Intermediate type 3 for the patternR- Return value type- Parameters:
pattern- Pattern to matchretVal- Constant value to return- Returns:
- new Case3
-
Case
@GwtIncompatible public static <T,T1, API.Match.Case<T,T2, T3, T4, R> R> Case(@NonNull API.Match.Pattern4<T, T1, T2, T3, T4> pattern, @NonNull Function4<? super T1, ? super T2, ? super T3, ? super T4, ? extends R> f) - Type Parameters:
T- Type of the value being matchedT1- Intermediate type 1 for the patternT2- Intermediate type 2 for the patternT3- Intermediate type 3 for the patternT4- Intermediate type 4 for the patternR- Return value type- Parameters:
pattern- Pattern to matchf- Matched value consumer- Returns:
- new Case4
-
Case
@GwtIncompatible public static <T,T1, API.Match.Case<T,T2, T3, T4, R> R> Case(@NonNull API.Match.Pattern4<T, T1, T2, T3, T4> pattern, @NonNull Supplier<? extends R> supplier) - Type Parameters:
T- Type of the value being matchedT1- Intermediate type 1 for the patternT2- Intermediate type 2 for the patternT3- Intermediate type 3 for the patternT4- Intermediate type 4 for the patternR- Return value type- Parameters:
pattern- Pattern to matchsupplier- Matched value supplier- Returns:
- new Case4
-
Case
@GwtIncompatible public static <T,T1, API.Match.Case<T,T2, T3, T4, R> R> Case(@NonNull API.Match.Pattern4<T, T1, T2, T3, T4> pattern, R retVal) Returns aAPI.Match.Case4instance for a specificAPI.Match.Pattern4and a constant value- Type Parameters:
T- Type of the value being matchedT1- Intermediate type 1 for the patternT2- Intermediate type 2 for the patternT3- Intermediate type 3 for the patternT4- Intermediate type 4 for the patternR- Return value type- Parameters:
pattern- Pattern to matchretVal- Constant value to return- Returns:
- new Case4
-
Case
@GwtIncompatible public static <T,T1, API.Match.Case<T,T2, T3, T4, T5, R> R> Case(@NonNull API.Match.Pattern5<T, T1, T2, T3, T4, T5> pattern, @NonNull Function5<? super T1, ? super T2, ? super T3, ? super T4, ? super T5, ? extends R> f) - Type Parameters:
T- Type of the value being matchedT1- Intermediate type 1 for the patternT2- Intermediate type 2 for the patternT3- Intermediate type 3 for the patternT4- Intermediate type 4 for the patternT5- Intermediate type 5 for the patternR- Return value type- Parameters:
pattern- Pattern to matchf- Matched value consumer- Returns:
- new Case5
-
Case
@GwtIncompatible public static <T,T1, API.Match.Case<T,T2, T3, T4, T5, R> R> Case(@NonNull API.Match.Pattern5<T, T1, T2, T3, T4, T5> pattern, @NonNull Supplier<? extends R> supplier) - Type Parameters:
T- Type of the value being matchedT1- Intermediate type 1 for the patternT2- Intermediate type 2 for the patternT3- Intermediate type 3 for the patternT4- Intermediate type 4 for the patternT5- Intermediate type 5 for the patternR- Return value type- Parameters:
pattern- Pattern to matchsupplier- Matched value supplier- Returns:
- new Case5
-
Case
@GwtIncompatible public static <T,T1, API.Match.Case<T,T2, T3, T4, T5, R> R> Case(@NonNull API.Match.Pattern5<T, T1, T2, T3, T4, T5> pattern, R retVal) Returns aAPI.Match.Case5instance for a specificAPI.Match.Pattern5and a constant value- Type Parameters:
T- Type of the value being matchedT1- Intermediate type 1 for the patternT2- Intermediate type 2 for the patternT3- Intermediate type 3 for the patternT4- Intermediate type 4 for the patternT5- Intermediate type 5 for the patternR- Return value type- Parameters:
pattern- Pattern to matchretVal- Constant value to return- Returns:
- new Case5
-
Case
@GwtIncompatible public static <T,T1, API.Match.Case<T,T2, T3, T4, T5, T6, R> R> Case(@NonNull API.Match.Pattern6<T, T1, T2, T3, T4, T5, T6> pattern, @NonNull Function6<? super T1, ? super T2, ? super T3, ? super T4, ? super T5, ? super T6, ? extends R> f) - Type Parameters:
T- Type of the value being matchedT1- Intermediate type 1 for the patternT2- Intermediate type 2 for the patternT3- Intermediate type 3 for the patternT4- Intermediate type 4 for the patternT5- Intermediate type 5 for the patternT6- Intermediate type 6 for the patternR- Return value type- Parameters:
pattern- Pattern to matchf- Matched value consumer- Returns:
- new Case6
-
Case
@GwtIncompatible public static <T,T1, API.Match.Case<T,T2, T3, T4, T5, T6, R> R> Case(@NonNull API.Match.Pattern6<T, T1, T2, T3, T4, T5, T6> pattern, @NonNull Supplier<? extends R> supplier) - Type Parameters:
T- Type of the value being matchedT1- Intermediate type 1 for the patternT2- Intermediate type 2 for the patternT3- Intermediate type 3 for the patternT4- Intermediate type 4 for the patternT5- Intermediate type 5 for the patternT6- Intermediate type 6 for the patternR- Return value type- Parameters:
pattern- Pattern to matchsupplier- Matched value supplier- Returns:
- new Case6
-
Case
@GwtIncompatible public static <T,T1, API.Match.Case<T,T2, T3, T4, T5, T6, R> R> Case(@NonNull API.Match.Pattern6<T, T1, T2, T3, T4, T5, T6> pattern, R retVal) Returns aAPI.Match.Case6instance for a specificAPI.Match.Pattern6and a constant value- Type Parameters:
T- Type of the value being matchedT1- Intermediate type 1 for the patternT2- Intermediate type 2 for the patternT3- Intermediate type 3 for the patternT4- Intermediate type 4 for the patternT5- Intermediate type 5 for the patternT6- Intermediate type 6 for the patternR- Return value type- Parameters:
pattern- Pattern to matchretVal- Constant value to return- Returns:
- new Case6
-
Case
@GwtIncompatible public static <T,T1, API.Match.Case<T,T2, T3, T4, T5, T6, T7, R> R> Case(@NonNull API.Match.Pattern7<T, T1, T2, T3, T4, T5, T6, T7> pattern, @NonNull Function7<? super T1, ? super T2, ? super T3, ? super T4, ? super T5, ? super T6, ? super T7, ? extends R> f) - Type Parameters:
T- Type of the value being matchedT1- Intermediate type 1 for the patternT2- Intermediate type 2 for the patternT3- Intermediate type 3 for the patternT4- Intermediate type 4 for the patternT5- Intermediate type 5 for the patternT6- Intermediate type 6 for the patternT7- Intermediate type 7 for the patternR- Return value type- Parameters:
pattern- Pattern to matchf- Matched value consumer- Returns:
- new Case7
-
Case
@GwtIncompatible public static <T,T1, API.Match.Case<T,T2, T3, T4, T5, T6, T7, R> R> Case(@NonNull API.Match.Pattern7<T, T1, T2, T3, T4, T5, T6, T7> pattern, @NonNull Supplier<? extends R> supplier) - Type Parameters:
T- Type of the value being matchedT1- Intermediate type 1 for the patternT2- Intermediate type 2 for the patternT3- Intermediate type 3 for the patternT4- Intermediate type 4 for the patternT5- Intermediate type 5 for the patternT6- Intermediate type 6 for the patternT7- Intermediate type 7 for the patternR- Return value type- Parameters:
pattern- Pattern to matchsupplier- Matched value supplier- Returns:
- new Case7
-
Case
@GwtIncompatible public static <T,T1, API.Match.Case<T,T2, T3, T4, T5, T6, T7, R> R> Case(@NonNull API.Match.Pattern7<T, T1, T2, T3, T4, T5, T6, T7> pattern, R retVal) Returns aAPI.Match.Case7instance for a specificAPI.Match.Pattern7and a constant value- Type Parameters:
T- Type of the value being matchedT1- Intermediate type 1 for the patternT2- Intermediate type 2 for the patternT3- Intermediate type 3 for the patternT4- Intermediate type 4 for the patternT5- Intermediate type 5 for the patternT6- Intermediate type 6 for the patternT7- Intermediate type 7 for the patternR- Return value type- Parameters:
pattern- Pattern to matchretVal- Constant value to return- Returns:
- new Case7
-
Case
@GwtIncompatible public static <T,T1, API.Match.Case<T,T2, T3, T4, T5, T6, T7, T8, R> R> Case(@NonNull API.Match.Pattern8<T, T1, T2, T3, T4, T5, T6, T7, T8> pattern, @NonNull Function8<? super T1, ? super T2, ? super T3, ? super T4, ? super T5, ? super T6, ? super T7, ? super T8, ? extends R> f) - Type Parameters:
T- Type of the value being matchedT1- Intermediate type 1 for the patternT2- Intermediate type 2 for the patternT3- Intermediate type 3 for the patternT4- Intermediate type 4 for the patternT5- Intermediate type 5 for the patternT6- Intermediate type 6 for the patternT7- Intermediate type 7 for the patternT8- Intermediate type 8 for the patternR- Return value type- Parameters:
pattern- Pattern to matchf- Matched value consumer- Returns:
- new Case8
-
Case
@GwtIncompatible public static <T,T1, API.Match.Case<T,T2, T3, T4, T5, T6, T7, T8, R> R> Case(@NonNull API.Match.Pattern8<T, T1, T2, T3, T4, T5, T6, T7, T8> pattern, @NonNull Supplier<? extends R> supplier) - Type Parameters:
T- Type of the value being matchedT1- Intermediate type 1 for the patternT2- Intermediate type 2 for the patternT3- Intermediate type 3 for the patternT4- Intermediate type 4 for the patternT5- Intermediate type 5 for the patternT6- Intermediate type 6 for the patternT7- Intermediate type 7 for the patternT8- Intermediate type 8 for the patternR- Return value type- Parameters:
pattern- Pattern to matchsupplier- Matched value supplier- Returns:
- new Case8
-
Case
@GwtIncompatible public static <T,T1, API.Match.Case<T,T2, T3, T4, T5, T6, T7, T8, R> R> Case(@NonNull API.Match.Pattern8<T, T1, T2, T3, T4, T5, T6, T7, T8> pattern, R retVal) Returns aAPI.Match.Case8instance for a specificAPI.Match.Pattern8and a constant value- Type Parameters:
T- Type of the value being matchedT1- Intermediate type 1 for the patternT2- Intermediate type 2 for the patternT3- Intermediate type 3 for the patternT4- Intermediate type 4 for the patternT5- Intermediate type 5 for the patternT6- Intermediate type 6 for the patternT7- Intermediate type 7 for the patternT8- Intermediate type 8 for the patternR- Return value type- Parameters:
pattern- Pattern to matchretVal- Constant value to return- Returns:
- new Case8
-
$
Wildcard pattern, matches any value.- Type Parameters:
T- injected type of the underlying value- Returns:
- a new
Pattern0instance
-
$
Value pattern, checks for equality.- Type Parameters:
T- type of the prototype- Parameters:
prototype- the value that should be equal to the underlying object- Returns:
- a new
Pattern0instance
-
$
Guard pattern, checks if a predicate is satisfied.This method is intended to be used with lambdas and method references, for example:
It is also valid to passString evenOrOdd(int num) { return Match(num).of( Case($(i -> i % 2 == 0), "even"), Case($(this::isOdd), "odd") ); } boolean isOdd(int i) { return i % 2 == 1; }Predicateinstances:
Note: Please take care when matchingPredicate<Integer> isOdd = i -> i % 2 == 1; Match(num).of( Case($(i -> i % 2 == 0), "even"), Case($(isOdd), "odd") );Predicateinstances. In general, function equality is an undecidable problem in computer science. In Vavr we are only able to check, if two functions are the same instance.However, this code will fail:
Instead we have to usePredicate<Integer> p = i -> true; Match(p).of( Case($(p), 1) // WRONG! It calls $(Predicate) );Predicates.is(Object):Predicate<Integer> p = i -> true; Match(p).of( Case($(is(p)), 1) // CORRECT! It calls $(T) );- Type Parameters:
T- type of the prototype- Parameters:
predicate- the predicate that tests a given value- Returns:
- a new
Pattern0instance
-