import static io.vavr.API.*;
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.
| Modifier and Type | Class and Description |
|---|---|
| public static class | |
| public static class | |
| public static class | |
| public static class | |
| public static class | |
| public static class | |
| public static class | |
| public static class | |
| public static class | |
| public static class | |
| public static class | |
| public static class | |
| public static class | |
| public static class | |
| public static class | |
| public static class | |
| public static class | |
| public static class | |
| public static class | |
| public static class | |
| public static class | |
| public static class | |
| public static class | |
| public static class | |
| public static class | |
| public static class | |
| public static class | |
| public static class | |
| public static class | |
| public static class | |
| public static class | |
| public static class | |
| public static class | |
| public static class | |
| public static class | |
| public static class | |
| public static class | |
| public static class | |
| public static class | |
| public static class | |
| public static class |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static < injected type of the underlying value T> API. | |
| public static < type of the prototype T> API. | Returns: a newPattern0 instancethe value that should be equal to the underlying object prototype)Value pattern, checks for equality. |
| public static < type of the prototype T> API. | |
| public static < Component type of element. T> Array | |
| public static < Component type of element. T> Array | Returns: A newArray instance containing the given elementAn element. element)Alias for |
| public static < Component type of elements. T> Array | Returns: A newArray instance containing the given elementsZero or more elements. elements)Alias for |
| public static <T, R> API. | |
| public static <T, R> API. | |
| public static <T, R> API. | |
| public static <T, T1, R> API. | |
| public static <T, T1, R> API. | |
| public static <T, T1, R> API. | |
| public static <T, T1, T2, R> API. | |
| public static <T, T1, T2, R> API. | |
| public static <T, T1, T2, R> API. | |
| public static <T, T1, T2, T3, R> API. | |
| public static <T, T1, T2, T3, R> API. | |
| public static <T, T1, T2, T3, R> API. | |
| public static <T, T1, T2, T3, T4, R> API. | |
| public static <T, T1, T2, T3, T4, R> API. | |
| public static <T, T1, T2, T3, T4, R> API. | |
| public static <T, T1, T2, T3, T4, T5, R> API. | |
| public static <T, T1, T2, T3, T4, T5, R> API. | |
| public static <T, T1, T2, T3, T4, T5, R> API. | |
| public static <T, T1, T2, T3, T4, T5, T6, R> API. | |
| public static <T, T1, T2, T3, T4, T5, T6, R> API. | |
| public static <T, T1, T2, T3, T4, T5, T6, R> API. | |
| public static <T, T1, T2, T3, T4, T5, T6, T7, R> API. | |
| public static <T, T1, T2, T3, T4, T5, T6, T7, R> API. | |
| public static <T, T1, T2, T3, T4, T5, T6, T7, R> API. | |
| public static <T, T1, T2, T3, T4, T5, T6, T7, T8, R> API. | |
| public static <T, T1, T2, T3, T4, T5, T6, T7, T8, R> API. | |
| public static <T, T1, T2, T3, T4, T5, T6, T7, T8, R> API. | |
| public static CharSeq | Returns: A newCharSeq instance containing the given elementA character. character)Alias for |
| public static CharSeq | Returns: A newCharSeq instance containing the given characters in the same order.Zero or more characters. characters)Alias for |
| public static CharSeq | Returns: A newCharSeq instanceCharSequence instance.Alias for |
| public static < return type R> CheckedFunction0 | Returns: ACheckedFunction0A method reference methodReference)Alias for |
| public static < type of the 1st argument T1, return type R> CheckedFunction1 | Returns: ACheckedFunction1A method reference methodReference)Alias for |
| public static < type of the 1st argument T1, type of the 2nd argument T2, return type R> CheckedFunction2 | Returns: ACheckedFunction2A method reference methodReference)Alias for |
| public static < type of the 1st argument T1, type of the 2nd argument T2, type of the 3rd argument T3, return type R> CheckedFunction3 | Returns: ACheckedFunction3A method reference methodReference)Alias for |
| public static < type of the 1st argument T1, type of the 2nd argument T2, type of the 3rd argument T3, type of the 4th argument T4, return type R> CheckedFunction4 | Returns: ACheckedFunction4A method reference methodReference)Alias for |
| public static < type of the 1st argument T1, type of the 2nd argument T2, type of the 3rd argument T3, type of the 4th argument T4, type of the 5th argument T5, return type R> CheckedFunction5 | Returns: ACheckedFunction5A method reference methodReference)Alias for |
| public static < type of the 1st argument T1, type of the 2nd argument T2, type of the 3rd argument T3, type of the 4th argument T4, type of the 5th argument T5, type of the 6th argument T6, return type R> CheckedFunction6 | Returns: ACheckedFunction6A method reference methodReference)Alias for |
| public static < type of the 1st argument T1, type of the 2nd argument T2, type of the 3rd argument T3, type of the 4th argument T4, type of the 5th argument T5, type of the 6th argument T6, type of the 7th argument T7, return type R> CheckedFunction7 | Returns: ACheckedFunction7A method reference methodReference)Alias for |
| public static < type of the 1st argument T1, type of the 2nd argument T2, type of the 3rd argument T3, type of the 4th argument T4, type of the 5th argument T5, type of the 6th argument T6, type of the 7th argument T7, type of the 8th argument T8, return type R> CheckedFunction8 | Returns: ACheckedFunction8A method reference methodReference)Alias for |
| public static < Component type of the T> Try.Try. | Returns: A newTry..An exception. exception)Alias for |
| public static < element type of T, tscomponent type of the resulting U> IteratorIterator | |
| public static < component type of the 1st Iterable T1> API. | |
| public static < component type of the 1st Iterable T1, component type of the 2nd Iterable T2> API. | |
| public static < component type of the 1st Iterable T1, component type of the 2nd Iterable T2, component type of the 3rd Iterable T3> API. | |
| public static < component type of the 1st Iterable T1, component type of the 2nd Iterable T2, component type of the 3rd Iterable T3, component type of the 4th Iterable T4> API. | |
| public static < component type of the 1st Iterable T1, component type of the 2nd Iterable T2, component type of the 3rd Iterable T3, component type of the 4th Iterable T4, component type of the 5th Iterable T5> API. | |
| public static < component type of the 1st Iterable T1, component type of the 2nd Iterable T2, component type of the 3rd Iterable T3, component type of the 4th Iterable T4, component type of the 5th Iterable T5, component type of the 6th Iterable T6> API. | |
| public static < component type of the 1st Iterable T1, component type of the 2nd Iterable T2, component type of the 3rd Iterable T3, component type of the 4th Iterable T4, component type of the 5th Iterable T5, component type of the 6th Iterable T6, component type of the 7th Iterable T7> API. | Returns: a newFor-comprehension of arity 7the 1st Iterable ts1, Iterable<T2> the 2nd Iterable ts2, Iterable<T3> the 3rd Iterable ts3, Iterable<T4> the 4th Iterable ts4, Iterable<T5> the 5th Iterable ts5, Iterable<T6> the 6th Iterable ts6, Iterable<T7> the 7th Iterable ts7)Creates a |
| public static < component type of the 1st Iterable T1, component type of the 2nd Iterable T2, component type of the 3rd Iterable T3, component type of the 4th Iterable T4, component type of the 5th Iterable T5, component type of the 6th Iterable T6, component type of the 7th Iterable T7, component type of the 8th Iterable T8> API. | Returns: a newFor-comprehension of arity 8the 1st Iterable ts1, Iterable<T2> the 2nd Iterable ts2, Iterable<T3> the 3rd Iterable ts3, Iterable<T4> the 4th Iterable ts4, Iterable<T5> the 5th Iterable ts5, Iterable<T6> the 6th Iterable ts6, Iterable<T7> the 7th Iterable ts7, Iterable<T8> the 8th Iterable ts8)Creates a |
| public static < component type of the 1st Option T1> API. | |
| public static < component type of the 1st Option T1, component type of the 2nd Option T2> API. | |
| public static < component type of the 1st Option T1, component type of the 2nd Option T2, component type of the 3rd Option T3> API. | |
| public static < component type of the 1st Option T1, component type of the 2nd Option T2, component type of the 3rd Option T3, component type of the 4th Option T4> API. | |
| public static < component type of the 1st Option T1, component type of the 2nd Option T2, component type of the 3rd Option T3, component type of the 4th Option T4, component type of the 5th Option T5> API. | |
| public static < component type of the 1st Option T1, component type of the 2nd Option T2, component type of the 3rd Option T3, component type of the 4th Option T4, component type of the 5th Option T5, component type of the 6th Option T6> API. | |
| public static < component type of the 1st Option T1, component type of the 2nd Option T2, component type of the 3rd Option T3, component type of the 4th Option T4, component type of the 5th Option T5, component type of the 6th Option T6, component type of the 7th Option T7> API. | |
| public static < component type of the 1st Option T1, component type of the 2nd Option T2, component type of the 3rd Option T3, component type of the 4th Option T4, component type of the 5th Option T5, component type of the 6th Option T6, component type of the 7th Option T7, component type of the 8th Option T8> API. | Returns: a newFor-comprehension of arity 8the 1st Option ts1, Option<T2> the 2nd Option ts2, Option<T3> the 3rd Option ts3, Option<T4> the 4th Option ts4, Option<T5> the 5th Option ts5, Option<T6> the 6th Option ts6, Option<T7> the 7th Option ts7, Option<T8> the 8th Option ts8)Creates a |
| public static < component type of the 1st Future T1> API. | |
| public static < component type of the 1st Future T1, component type of the 2nd Future T2> API. | |
| public static < component type of the 1st Future T1, component type of the 2nd Future T2, component type of the 3rd Future T3> API. | |
| public static < component type of the 1st Future T1, component type of the 2nd Future T2, component type of the 3rd Future T3, component type of the 4th Future T4> API. | |
| public static < component type of the 1st Future T1, component type of the 2nd Future T2, component type of the 3rd Future T3, component type of the 4th Future T4, component type of the 5th Future T5> API. | |
| public static < component type of the 1st Future T1, component type of the 2nd Future T2, component type of the 3rd Future T3, component type of the 4th Future T4, component type of the 5th Future T5, component type of the 6th Future T6> API. | |
| public static < component type of the 1st Future T1, component type of the 2nd Future T2, component type of the 3rd Future T3, component type of the 4th Future T4, component type of the 5th Future T5, component type of the 6th Future T6, component type of the 7th Future T7> API. | |
| public static < component type of the 1st Future T1, component type of the 2nd Future T2, component type of the 3rd Future T3, component type of the 4th Future T4, component type of the 5th Future T5, component type of the 6th Future T6, component type of the 7th Future T7, component type of the 8th Future T8> API. | Returns: a newFor-comprehension of arity 8the 1st Future ts1, Future<T2> the 2nd Future ts2, Future<T3> the 3rd Future ts3, Future<T4> the 4th Future ts4, Future<T5> the 5th Future ts5, Future<T6> the 6th Future ts6, Future<T7> the 7th Future ts7, Future<T8> the 8th Future ts8)Creates a |
| public static < component type of the 1st Try T1> API. | |
| public static < component type of the 1st Try T1, component type of the 2nd Try T2> API. | |
| public static < component type of the 1st Try T1, component type of the 2nd Try T2, component type of the 3rd Try T3> API. | |
| public static < component type of the 1st Try T1, component type of the 2nd Try T2, component type of the 3rd Try T3, component type of the 4th Try T4> API. | |
| public static < component type of the 1st Try T1, component type of the 2nd Try T2, component type of the 3rd Try T3, component type of the 4th Try T4, component type of the 5th Try T5> API. | |
| public static < component type of the 1st Try T1, component type of the 2nd Try T2, component type of the 3rd Try T3, component type of the 4th Try T4, component type of the 5th Try T5, component type of the 6th Try T6> API. | |
| public static < component type of the 1st Try T1, component type of the 2nd Try T2, component type of the 3rd Try T3, component type of the 4th Try T4, component type of the 5th Try T5, component type of the 6th Try T6, component type of the 7th Try T7> API. | |
| public static < component type of the 1st Try T1, component type of the 2nd Try T2, component type of the 3rd Try T3, component type of the 4th Try T4, component type of the 5th Try T5, component type of the 6th Try T6, component type of the 7th Try T7, component type of the 8th Try T8> API. | |
| public static < component type of the 1st List T1> API. | |
| public static < component type of the 1st List T1, component type of the 2nd List T2> API. | |
| public static < component type of the 1st List T1, component type of the 2nd List T2, component type of the 3rd List T3> API. | |
| public static < component type of the 1st List T1, component type of the 2nd List T2, component type of the 3rd List T3, component type of the 4th List T4> API. | |
| public static < component type of the 1st List T1, component type of the 2nd List T2, component type of the 3rd List T3, component type of the 4th List T4, component type of the 5th List T5> API. | |
| public static < component type of the 1st List T1, component type of the 2nd List T2, component type of the 3rd List T3, component type of the 4th List T4, component type of the 5th List T5, component type of the 6th List T6> API. | |
| public static < component type of the 1st List T1, component type of the 2nd List T2, component type of the 3rd List T3, component type of the 4th List T4, component type of the 5th List T5, component type of the 6th List T6, component type of the 7th List T7> API. | |
| public static < component type of the 1st List T1, component type of the 2nd List T2, component type of the 3rd List T3, component type of the 4th List T4, component type of the 5th List T5, component type of the 6th List T6, component type of the 7th List T7, component type of the 8th List T8> API. | |
| public static < return type R> Function0 | Returns: AFunction0A method reference methodReference)Alias for |
| public static < type of the 1st argument T1, return type R> Function1 | Returns: AFunction1A method reference methodReference)Alias for |
| public static < type of the 1st argument T1, type of the 2nd argument T2, return type R> Function2 | Returns: AFunction2A method reference methodReference)Alias for |
| public static < type of the 1st argument T1, type of the 2nd argument T2, type of the 3rd argument T3, return type R> Function3 | Returns: AFunction3A method reference methodReference)Alias for |
| public static < type of the 1st argument T1, type of the 2nd argument T2, type of the 3rd argument T3, type of the 4th argument T4, return type R> Function4 | Returns: AFunction4A method reference methodReference)Alias for |
| public static < type of the 1st argument T1, type of the 2nd argument T2, type of the 3rd argument T3, type of the 4th argument T4, type of the 5th argument T5, return type R> Function5 | Returns: AFunction5A method reference methodReference)Alias for |
| public static < type of the 1st argument T1, type of the 2nd argument T2, type of the 3rd argument T3, type of the 4th argument T4, type of the 5th argument T5, type of the 6th argument T6, return type R> Function6 | Returns: AFunction6A method reference methodReference)Alias for |
| public static < type of the 1st argument T1, type of the 2nd argument T2, type of the 3rd argument T3, type of the 4th argument T4, type of the 5th argument T5, type of the 6th argument T6, type of the 7th argument T7, return type R> Function7 | Returns: AFunction7A method reference methodReference)Alias for |
| public static < type of the 1st argument T1, type of the 2nd argument T2, type of the 3rd argument T3, type of the 4th argument T4, type of the 5th argument T5, type of the 6th argument T6, type of the 7th argument T7, type of the 8th argument T8, return type R> Function8 | Returns: AFunction8A method reference methodReference)Alias for |
| public static < Type of the computation result. T> Future | Returns: A newFuture instance.A computation. computation)Alias for |
| public static < Type of the computation result. T> Future | Returns: A newFuture instance.An executor service. executorService, CheckedFunction0<? extends T> A computation. computation)Alias for |
| public static < The value type of a successful result. T> Future | |
| public static < The value type of a successful result. T> Future | Returns: A succeededFuture.An executorService, T ExecutorService.The result. result)Alias for |
| public static < Component type of element. T> IndexedSeq | |
| public static < Component type of element. T> IndexedSeq | Returns: A newVector instance containing the given elementAn element. element)Alias for |
| public static < Component type of elements. T> IndexedSeq | Returns: A newVector instance containing the given elementsZero or more elements. elements)Alias for |
| public static < type of the given E, errortype of the value T> Validation. | |
| public static < type of the lazy value T> Lazy | Returns: A new instance ofLazyA supplier supplier)Alias for |
| public static < Type of left value. L, Type of right value. R> Either. | |
| public static < The key type. K, The value type. V> Map | |
| public static < The key type. K, The value type. V> Map | Returns: A newLinkedHashMap instance containing the given entriesMap entries. entries)
Deprecated
Will be removed in a future version.
Alias for |
| public static < The key type. K, The value type. V> Map | Returns: A newLinkedHashMap instance containing the given entriesThe key k1, V The value v1)Alias for |
| public static < The key type. K, The value type. V> Map | Returns: A newLinkedHashMap instance containing the given entriesThe key of the 1st pair k1, V The value of the 1st pair v1, K The key of the 2nd pair k2, V The value of the 2nd pair v2) |
| public static < The key type. K, The value type. V> Map | Returns: A newLinkedHashMap instance containing the given entriesThe key of the 1st pair k1, V The value of the 1st pair v1, K The key of the 2nd pair k2, V The value of the 2nd pair v2, K The key of the 3rd pair k3, V The value of the 3rd pair v3)Alias for |
| public static < The key type. K, The value type. V> Map | Returns: A newLinkedHashMap instance containing the given entriesThe key of the 1st pair k1, V The value of the 1st pair v1, K The key of the 2nd pair k2, V The value of the 2nd pair v2, K The key of the 3rd pair k3, V The value of the 3rd pair v3, K The key of the 4th pair k4, V The value of the 4th pair v4)Alias for |
| public static < The key type. K, The value type. V> Map | Returns: A newLinkedHashMap instance containing the given entriesThe key of the 1st pair k1, V The value of the 1st pair v1, K The key of the 2nd pair k2, V The value of the 2nd pair v2, K The key of the 3rd pair k3, V The value of the 3rd pair v3, K The key of the 4th pair k4, V The value of the 4th pair v4, K The key of the 5th pair k5, V The value of the 5th pair v5)Alias for |
| public static < The key type. K, The value type. V> Map | Returns: A newLinkedHashMap instance containing the given entriesThe key of the 1st pair k1, V The value of the 1st pair v1, K The key of the 2nd pair k2, V The value of the 2nd pair v2, K The key of the 3rd pair k3, V The value of the 3rd pair v3, K The key of the 4th pair k4, V The value of the 4th pair v4, K The key of the 5th pair k5, V The value of the 5th pair v5, K The key of the 6th pair k6, V The value of the 6th pair v6) |
| public static < The key type. K, The value type. V> Map | Returns: A newLinkedHashMap instance containing the given entriesThe key of the 1st pair k1, V The value of the 1st pair v1, K The key of the 2nd pair k2, V The value of the 2nd pair v2, K The key of the 3rd pair k3, V The value of the 3rd pair v3, K The key of the 4th pair k4, V The value of the 4th pair v4, K The key of the 5th pair k5, V The value of the 5th pair v5, K The key of the 6th pair k6, V The value of the 6th pair v6, K The key of the 7th pair k7, V The value of the 7th pair v7) |
| public static < The key type. K, The value type. V> Map | Returns: A newLinkedHashMap instance containing the given entriesThe key of the 1st pair k1, V The value of the 1st pair v1, K The key of the 2nd pair k2, V The value of the 2nd pair v2, K The key of the 3rd pair k3, V The value of the 3rd pair v3, K The key of the 4th pair k4, V The value of the 4th pair v4, K The key of the 5th pair k5, V The value of the 5th pair v5, K The key of the 6th pair k6, V The value of the 6th pair v6, K The key of the 7th pair k7, V The value of the 7th pair v7, K The key of the 8th pair k8, V The value of the 8th pair v8) |
| public static < The key type. K, The value type. V> Map | Returns: A newLinkedHashMap instance containing the given entriesThe key of the 1st pair k1, V The value of the 1st pair v1, K The key of the 2nd pair k2, V The value of the 2nd pair v2, K The key of the 3rd pair k3, V The value of the 3rd pair v3, K The key of the 4th pair k4, V The value of the 4th pair v4, K The key of the 5th pair k5, V The value of the 5th pair v5, K The key of the 6th pair k6, V The value of the 6th pair v6, K The key of the 7th pair k7, V The value of the 7th pair v7, K The key of the 8th pair k8, V The value of the 8th pair v8, K The key of the 9th pair k9, V The value of the 9th pair v9) |
| public static < The key type. K, The value type. V> Map | Returns: A newLinkedHashMap instance containing the given entriesThe key of the 1st pair k1, V The value of the 1st pair v1, K The key of the 2nd pair k2, V The value of the 2nd pair v2, K The key of the 3rd pair k3, V The value of the 3rd pair v3, K The key of the 4th pair k4, V The value of the 4th pair v4, K The key of the 5th pair k5, V The value of the 5th pair v5, K The key of the 6th pair k6, V The value of the 6th pair v6, K The key of the 7th pair k7, V The value of the 7th pair v7, K The key of the 8th pair k8, V The value of the 8th pair v8, K The key of the 9th pair k9, V The value of the 9th pair v9, K The key of the 10th pair k10, V The value of the 10th pair v10) |
| public static < Component type of element. T> Set | |
| public static < Component type of element. T> Set | Returns: A newLinkedHashSet instance containing the given elementAn element. element)Alias for |
| public static < Component type of elements. T> Set | Returns: A newLinkedHashSet instance containing the given elementsZero or more elements. elements)Alias for |
| public static < Component type of element. T> List | |
| public static < Component type of element. T> List | Returns: A newList instance containing the given elementAn element. element)Alias for |
| public static < Component type of elements. T> List | Returns: A newList instance containing the given elementsZero or more elements. elements)Alias for |
| public static < The key type. K, The value type. V> Map | |
| public static < The key type. K, The value type. V> Map | Returns: A newHashMap instance containing the given entriesMap entries. entries)
Deprecated
Will be removed in a future version.
Alias for |
| public static < The key type. K, The value type. V> Map | Returns: A newHashMap instance containing the given entriesThe key k1, V The value v1)Alias for |
| public static < The key type. K, The value type. V> Map | |
| public static < The key type. K, The value type. V> Map | Returns: A newHashMap instance containing the given entriesThe key of the 1st pair k1, V The value of the 1st pair v1, K The key of the 2nd pair k2, V The value of the 2nd pair v2, K The key of the 3rd pair k3, V The value of the 3rd pair v3)Alias for |
| public static < The key type. K, The value type. V> Map | Returns: A newHashMap instance containing the given entriesThe key of the 1st pair k1, V The value of the 1st pair v1, K The key of the 2nd pair k2, V The value of the 2nd pair v2, K The key of the 3rd pair k3, V The value of the 3rd pair v3, K The key of the 4th pair k4, V The value of the 4th pair v4)Alias for |
| public static < The key type. K, The value type. V> Map | Returns: A newHashMap instance containing the given entriesThe key of the 1st pair k1, V The value of the 1st pair v1, K The key of the 2nd pair k2, V The value of the 2nd pair v2, K The key of the 3rd pair k3, V The value of the 3rd pair v3, K The key of the 4th pair k4, V The value of the 4th pair v4, K The key of the 5th pair k5, V The value of the 5th pair v5)Alias for |
| public static < The key type. K, The value type. V> Map | Returns: A newHashMap instance containing the given entriesThe key of the 1st pair k1, V The value of the 1st pair v1, K The key of the 2nd pair k2, V The value of the 2nd pair v2, K The key of the 3rd pair k3, V The value of the 3rd pair v3, K The key of the 4th pair k4, V The value of the 4th pair v4, K The key of the 5th pair k5, V The value of the 5th pair v5, K The key of the 6th pair k6, V The value of the 6th pair v6) |
| public static < The key type. K, The value type. V> Map | Returns: A newHashMap instance containing the given entriesThe key of the 1st pair k1, V The value of the 1st pair v1, K The key of the 2nd pair k2, V The value of the 2nd pair v2, K The key of the 3rd pair k3, V The value of the 3rd pair v3, K The key of the 4th pair k4, V The value of the 4th pair v4, K The key of the 5th pair k5, V The value of the 5th pair v5, K The key of the 6th pair k6, V The value of the 6th pair v6, K The key of the 7th pair k7, V The value of the 7th pair v7) |
| public static < The key type. K, The value type. V> Map | Returns: A newHashMap instance containing the given entriesThe key of the 1st pair k1, V The value of the 1st pair v1, K The key of the 2nd pair k2, V The value of the 2nd pair v2, K The key of the 3rd pair k3, V The value of the 3rd pair v3, K The key of the 4th pair k4, V The value of the 4th pair v4, K The key of the 5th pair k5, V The value of the 5th pair v5, K The key of the 6th pair k6, V The value of the 6th pair v6, K The key of the 7th pair k7, V The value of the 7th pair v7, K The key of the 8th pair k8, V The value of the 8th pair v8) |
| public static < The key type. K, The value type. V> Map | Returns: A newHashMap instance containing the given entriesThe key of the 1st pair k1, V The value of the 1st pair v1, K The key of the 2nd pair k2, V The value of the 2nd pair v2, K The key of the 3rd pair k3, V The value of the 3rd pair v3, K The key of the 4th pair k4, V The value of the 4th pair v4, K The key of the 5th pair k5, V The value of the 5th pair v5, K The key of the 6th pair k6, V The value of the 6th pair v6, K The key of the 7th pair k7, V The value of the 7th pair v7, K The key of the 8th pair k8, V The value of the 8th pair v8, K The key of the 9th pair k9, V The value of the 9th pair v9) |
| public static < The key type. K, The value type. V> Map | Returns: A newHashMap instance containing the given entriesThe key of the 1st pair k1, V The value of the 1st pair v1, K The key of the 2nd pair k2, V The value of the 2nd pair v2, K The key of the 3rd pair k3, V The value of the 3rd pair v3, K The key of the 4th pair k4, V The value of the 4th pair v4, K The key of the 5th pair k5, V The value of the 5th pair v5, K The key of the 6th pair k6, V The value of the 6th pair v6, K The key of the 7th pair k7, V The value of the 7th pair v7, K The key of the 8th pair k8, V The value of the 8th pair v8, K The key of the 9th pair k9, V The value of the 9th pair v9, K The key of the 10th pair k10, V The value of the 10th pair v10) |
| public static < type of the value T> API. | |
| public static < component type T> Option. | |
| public static < type of the value T> Option | |
| public static void | |
| public static void | |
| public static void | |
| public static void | |
| public static < Component type of element. T extends Comparable | |
| public static < Component type of element. T extends Comparable | Returns: A newPriorityQueue empty instanceThe comparator used to sort the elements comparator)Alias for |
| public static < Component type of element. T extends Comparable | Returns: A newPriorityQueue instance containing the given elementAn element. element)Alias for |
| public static < Component type of element. T> PriorityQueue | Returns: A newPriorityQueue instance containing the given elementThe comparator used to sort the elements comparator, T An element. element)Alias for |
| public static < Component type of element. T extends Comparable | Returns: A newPriorityQueue instance containing the given elementsZero or more elements. elements)Alias for |
| public static < Component type of element. T> PriorityQueue | Returns: A newPriorityQueue instance containing the given elementsThe comparator used to sort the elements comparator, T... Zero or more elements. elements)Alias for |
| public static < Component type of element. T> Queue | |
| public static < Component type of element. T> Queue | Returns: A newQueue instance containing the given elementAn element. element)Alias for |
| public static < Component type of elements. T> Queue | Returns: A newQueue instance containing the given elementsZero or more elements. elements)Alias for |
| public static < Type of left value. L, Type of right value. R> Either. | |
| public static Void | |
| public static < Component type of element. T> Seq | |
| public static < Component type of element. T> Seq | Returns: A newList instance containing the given elementAn element. element)Alias for |
| public static < Component type of elements. T> Seq | Returns: A newList instance containing the given elementsZero or more elements. elements)Alias for |
| public static < Component type of element. T> Set | |
| public static < Component type of element. T> Set | Returns: A newHashSet instance containing the given elementAn element. element)Alias for |
| public static < Component type of elements. T> Set | Returns: A newHashSet instance containing the given elementsZero or more elements. elements)Alias for |
| public static < type of the value T> Option. | |
| public static < The key type. K extends ComparableThe value type. V> SortedMap | |
| public static < The key type. K, The value type. V> SortedMap | Returns: A new emptyTreeMap instanceThe comparator used to sort the entries by their key keyComparator)Alias for |
| public static < The key type. K, The value type. V> SortedMap | Returns: A newTreeMap instance containing the given entryThe comparator used to sort the entries by their key keyComparator, K A singleton map key. key, V A singleton map value. value)Alias for |
| public static < The key type. K extends ComparableThe value type. V> SortedMap | Returns: A newTreeMap instance containing the given entriesMap entries. entries)
Deprecated
Will be removed in a future version.
Alias for |
| public static < The key type. K, The value type. V> SortedMap | Returns: A newTreeMap instance containing the given entryThe comparator used to sort the entries by their key keyComparator, Tuple2<? extends K, ? extends V>... Map entries. entries)
Deprecated
Will be removed in a future version.
Alias for |
| public static < The key type. K extends ComparableThe value type. V> SortedMap | Returns: A newTreeMap instance containing the given mapA map entry. map)
Deprecated
Will be removed in a future version.
Alias for |
| public static < The key type. K extends ComparableThe value type. V> SortedMap | Returns: A newTreeMap instance containing the given entriesThe key k1, V The value v1)Alias for |
| public static < The key type. K extends ComparableThe value type. V> SortedMap | Returns: A newTreeMap instance containing the given entriesThe key of the 1st pair k1, V The value of the 1st pair v1, K The key of the 2nd pair k2, V The value of the 2nd pair v2)Alias for |
| public static < The key type. K extends ComparableThe value type. V> SortedMap | Returns: A newTreeMap instance containing the given entriesThe key of the 1st pair k1, V The value of the 1st pair v1, K The key of the 2nd pair k2, V The value of the 2nd pair v2, K The key of the 3rd pair k3, V The value of the 3rd pair v3)Alias for |
| public static < The key type. K extends ComparableThe value type. V> SortedMap | Returns: A newTreeMap instance containing the given entriesThe key of the 1st pair k1, V The value of the 1st pair v1, K The key of the 2nd pair k2, V The value of the 2nd pair v2, K The key of the 3rd pair k3, V The value of the 3rd pair v3, K The key of the 4th pair k4, V The value of the 4th pair v4)Alias for |
| public static < The key type. K extends ComparableThe value type. V> SortedMap | Returns: A newTreeMap instance containing the given entriesThe key of the 1st pair k1, V The value of the 1st pair v1, K The key of the 2nd pair k2, V The value of the 2nd pair v2, K The key of the 3rd pair k3, V The value of the 3rd pair v3, K The key of the 4th pair k4, V The value of the 4th pair v4, K The key of the 5th pair k5, V The value of the 5th pair v5) |
| public static < The key type. K extends ComparableThe value type. V> SortedMap | Returns: A newTreeMap instance containing the given entriesThe key of the 1st pair k1, V The value of the 1st pair v1, K The key of the 2nd pair k2, V The value of the 2nd pair v2, K The key of the 3rd pair k3, V The value of the 3rd pair v3, K The key of the 4th pair k4, V The value of the 4th pair v4, K The key of the 5th pair k5, V The value of the 5th pair v5, K The key of the 6th pair k6, V The value of the 6th pair v6) |
| public static < The key type. K extends ComparableThe value type. V> SortedMap | Returns: A newTreeMap instance containing the given entriesThe key of the 1st pair k1, V The value of the 1st pair v1, K The key of the 2nd pair k2, V The value of the 2nd pair v2, K The key of the 3rd pair k3, V The value of the 3rd pair v3, K The key of the 4th pair k4, V The value of the 4th pair v4, K The key of the 5th pair k5, V The value of the 5th pair v5, K The key of the 6th pair k6, V The value of the 6th pair v6, K The key of the 7th pair k7, V The value of the 7th pair v7) |
| public static < The key type. K extends ComparableThe value type. V> SortedMap | Returns: A newTreeMap instance containing the given entriesThe key of the 1st pair k1, V The value of the 1st pair v1, K The key of the 2nd pair k2, V The value of the 2nd pair v2, K The key of the 3rd pair k3, V The value of the 3rd pair v3, K The key of the 4th pair k4, V The value of the 4th pair v4, K The key of the 5th pair k5, V The value of the 5th pair v5, K The key of the 6th pair k6, V The value of the 6th pair v6, K The key of the 7th pair k7, V The value of the 7th pair v7, K The key of the 8th pair k8, V The value of the 8th pair v8) |
| public static < The key type. K extends ComparableThe value type. V> SortedMap | Returns: A newTreeMap instance containing the given entriesThe key of the 1st pair k1, V The value of the 1st pair v1, K The key of the 2nd pair k2, V The value of the 2nd pair v2, K The key of the 3rd pair k3, V The value of the 3rd pair v3, K The key of the 4th pair k4, V The value of the 4th pair v4, K The key of the 5th pair k5, V The value of the 5th pair v5, K The key of the 6th pair k6, V The value of the 6th pair v6, K The key of the 7th pair k7, V The value of the 7th pair v7, K The key of the 8th pair k8, V The value of the 8th pair v8, K The key of the 9th pair k9, V The value of the 9th pair v9) |
| public static < The key type. K extends ComparableThe value type. V> SortedMap | Returns: A newTreeMap instance containing the given entriesThe key of the 1st pair k1, V The value of the 1st pair v1, K The key of the 2nd pair k2, V The value of the 2nd pair v2, K The key of the 3rd pair k3, V The value of the 3rd pair v3, K The key of the 4th pair k4, V The value of the 4th pair v4, K The key of the 5th pair k5, V The value of the 5th pair v5, K The key of the 6th pair k6, V The value of the 6th pair v6, K The key of the 7th pair k7, V The value of the 7th pair v7, K The key of the 8th pair k8, V The value of the 8th pair v8, K The key of the 9th pair k9, V The value of the 9th pair v9, K The key of the 10th pair k10, V The value of the 10th pair v10) |
| public static < Component type of element. T extends Comparable | |
| public static < Component type of element. T extends Comparable | Returns: A newTreeSet empty instanceThe comparator used to sort the elements comparator)Alias for |
| public static < Component type of element. T extends Comparable | Returns: A newTreeSet instance containing the given elementAn element. element)Alias for |
| public static < Component type of element. T> SortedSet | Returns: A newTreeSet instance containing the given elementThe comparator used to sort the elements comparator, T An element. element)Alias for |
| public static < Component type of element. T extends Comparable | Returns: A newTreeSet instance containing the given elementsZero or more elements. elements)Alias for |
| public static < Component type of element. T> SortedSet | Returns: A newTreeSet instance containing the given elementsThe comparator used to sort the elements comparator, T... Zero or more elements. elements)Alias for |
| public static < Component type of element. T> Stream | |
| public static < Component type of element. T> Stream | Returns: A newStream instance containing the given elementAn element. element)Alias for |
| public static < Component type of elements. T> Stream | Returns: A newStream instance containing the given elementsZero or more elements. elements)Alias for |
| public static < Type of the given T> Try.value. | |
| public static < The result type of the missing implementation. T> T | Returns: Nothing - this methods always throws.A temporary replacement for an implementations used during prototyping. |
| public static < The result type of the missing implementation. T> T | |
| public static < Component type T> Try | Returns: Try. if no exception occurs, otherwise Try. if an
exception occurs calling supplier.get().A checked supplier supplier)Alias for |
| public static Tuple0 | |
| public static < type of the 1st element T1> Tuple1 | Returns: a tuple of one element.the 1st element t1)Alias for |
| public static < type of the 1st element T1, type of the 2nd element T2> Tuple2 | Returns: a tuple of two elements.the 1st element t1, T2 the 2nd element t2)Alias for |
| public static < type of the 1st element T1, type of the 2nd element T2, type of the 3rd element T3> Tuple3 | Returns: a tuple of three elements.the 1st element t1, T2 the 2nd element t2, T3 the 3rd element t3)Alias for |
| public static < type of the 1st element T1, type of the 2nd element T2, type of the 3rd element T3, type of the 4th element T4> Tuple4 | Returns: a tuple of 4 elements.the 1st element t1, T2 the 2nd element t2, T3 the 3rd element t3, T4 the 4th element t4)Alias for |
| public static < type of the 1st element T1, type of the 2nd element T2, type of the 3rd element T3, type of the 4th element T4, type of the 5th element T5> Tuple5 | Returns: a tuple of 5 elements.the 1st element t1, T2 the 2nd element t2, T3 the 3rd element t3, T4 the 4th element t4, T5 the 5th element t5)Alias for |
| public static < type of the 1st element T1, type of the 2nd element T2, type of the 3rd element T3, type of the 4th element T4, type of the 5th element T5, type of the 6th element T6> Tuple6 | Returns: a tuple of 6 elements.the 1st element t1, T2 the 2nd element t2, T3 the 3rd element t3, T4 the 4th element t4, T5 the 5th element t5, T6 the 6th element t6)Alias for |
| public static < type of the 1st element T1, type of the 2nd element T2, type of the 3rd element T3, type of the 4th element T4, type of the 5th element T5, type of the 6th element T6, type of the 7th element T7> Tuple7 | Returns: a tuple of 7 elements.the 1st element t1, T2 the 2nd element t2, T3 the 3rd element t3, T4 the 4th element t4, T5 the 5th element t5, T6 the 6th element t6, T7 the 7th element t7)Alias for |
| public static < type of the 1st element T1, type of the 2nd element T2, type of the 3rd element T3, type of the 4th element T4, type of the 5th element T5, type of the 6th element T6, type of the 7th element T7, type of the 8th element T8> Tuple8 | Returns: a tuple of 8 elements.the 1st element t1, T2 the 2nd element t2, T3 the 3rd element t3, T4 the 4th element t4, T5 the 5th element t5, T6 the 6th element t6, T7 the 7th element t7, T8 the 8th element t8)Alias for |
| public static < return type R> Function0 | Returns: An unchecked wrapper of suppliedCheckedFunction0A method reference f)Alias for |
| public static < type of the 1st argument T1, return type R> Function1 | Returns: An unchecked wrapper of suppliedCheckedFunction1A method reference f)Alias for |
| public static < type of the 1st argument T1, type of the 2nd argument T2, return type R> Function2 | Returns: An unchecked wrapper of suppliedCheckedFunction2A method reference f)Alias for |
| public static < type of the 1st argument T1, type of the 2nd argument T2, type of the 3rd argument T3, return type R> Function3 | Returns: An unchecked wrapper of suppliedCheckedFunction3A method reference f)Alias for |
| public static < type of the 1st argument T1, type of the 2nd argument T2, type of the 3rd argument T3, type of the 4th argument T4, return type R> Function4 | Returns: An unchecked wrapper of suppliedCheckedFunction4A method reference f)Alias for |
| public static < type of the 1st argument T1, type of the 2nd argument T2, type of the 3rd argument T3, type of the 4th argument T4, type of the 5th argument T5, return type R> Function5 | Returns: An unchecked wrapper of suppliedCheckedFunction5A method reference f)Alias for |
| public static < type of the 1st argument T1, type of the 2nd argument T2, type of the 3rd argument T3, type of the 4th argument T4, type of the 5th argument T5, type of the 6th argument T6, return type R> Function6 | Returns: An unchecked wrapper of suppliedCheckedFunction6A method reference f)Alias for |
| public static < type of the 1st argument T1, type of the 2nd argument T2, type of the 3rd argument T3, type of the 4th argument T4, type of the 5th argument T5, type of the 6th argument T6, type of the 7th argument T7, return type R> Function7 | Returns: An unchecked wrapper of suppliedCheckedFunction7A method reference f)Alias for |
| public static < type of the 1st argument T1, type of the 2nd argument T2, type of the 3rd argument T3, type of the 4th argument T4, type of the 5th argument T5, type of the 6th argument T6, type of the 7th argument T7, type of the 8th argument T8, return type R> Function8 | Returns: An unchecked wrapper of suppliedCheckedFunction8A method reference f)Alias for |
| public static < type of the error E, type of the given T> Validation.value | |
| public static < Component type of element. T> Vector | |
| public static < Component type of element. T> Vector | Returns: A newVector instance containing the given elementAn element. element)Alias for |
| public static < Component type of elements. T> Vector | Returns: A newVector instance containing the given elementsZero or more elements. elements)Alias for |