Top Description Inners Constructors Methods
io.vavr

public final Class API

extends Object
Class Inheritance
Static Imports
io.vavr.API.Match.*

The most basic Vavr functionality is accessed through this API class.

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 and Inner Type Summary

Modifier and TypeClass and Description
public static class
API.For1<T1>

For-comprehension with one Iterable.

public static class
API.For1Future<T1>

For-comprehension with one Future.

public static class
API.For1List<T1>

For-comprehension with one List.

public static class
API.For1Option<T1>

For-comprehension with one Option.

public static class
API.For1Try<T1>

For-comprehension with one Try.

public static class
API.For2<T1, T2>

For-comprehension with two Iterables.

public static class
API.For2Future<T1, T2>

For-comprehension with two Futures.

public static class
API.For2List<T1, T2>

For-comprehension with two Lists.

public static class
API.For2Option<T1, T2>

For-comprehension with two Options.

public static class
API.For2Try<T1, T2>

For-comprehension with two Trys.

public static class
API.For3<T1, T2, T3>

For-comprehension with three Iterables.

public static class
API.For3Future<T1, T2, T3>

For-comprehension with three Futures.

public static class
API.For3List<T1, T2, T3>

For-comprehension with three Lists.

public static class
API.For3Option<T1, T2, T3>

For-comprehension with three Options.

public static class
API.For3Try<T1, T2, T3>

For-comprehension with three Trys.

public static class
API.For4<T1, T2, T3, T4>

For-comprehension with 4 Iterables.

public static class
API.For4Future<T1, T2, T3, T4>

For-comprehension with 4 Futures.

public static class
API.For4List<T1, T2, T3, T4>

For-comprehension with 4 Lists.

public static class
API.For4Option<T1, T2, T3, T4>

For-comprehension with 4 Options.

public static class
API.For4Try<T1, T2, T3, T4>

For-comprehension with 4 Trys.

public static class
API.For5<T1, T2, T3, T4, T5>

For-comprehension with 5 Iterables.

public static class
API.For5Future<T1, T2, T3, T4, T5>

For-comprehension with 5 Futures.

public static class
API.For5List<T1, T2, T3, T4, T5>

For-comprehension with 5 Lists.

public static class
API.For5Option<T1, T2, T3, T4, T5>

For-comprehension with 5 Options.

public static class
API.For5Try<T1, T2, T3, T4, T5>

For-comprehension with 5 Trys.

public static class
API.For6<T1, T2, T3, T4, T5, T6>

For-comprehension with 6 Iterables.

public static class
API.For6Future<T1, T2, T3, T4, T5, T6>

For-comprehension with 6 Futures.

public static class
API.For6List<T1, T2, T3, T4, T5, T6>

For-comprehension with 6 Lists.

public static class
API.For6Option<T1, T2, T3, T4, T5, T6>

For-comprehension with 6 Options.

public static class
API.For6Try<T1, T2, T3, T4, T5, T6>

For-comprehension with 6 Trys.

public static class
API.For7<T1, T2, T3, T4, T5, T6, T7>

For-comprehension with 7 Iterables.

public static class
API.For7Future<T1, T2, T3, T4, T5, T6, T7>

For-comprehension with 7 Futures.

public static class
API.For7List<T1, T2, T3, T4, T5, T6, T7>

For-comprehension with 7 Lists.

public static class
API.For7Option<T1, T2, T3, T4, T5, T6, T7>

For-comprehension with 7 Options.

public static class
API.For7Try<T1, T2, T3, T4, T5, T6, T7>

For-comprehension with 7 Trys.

public static class
API.For8<T1, T2, T3, T4, T5, T6, T7, T8>

For-comprehension with 8 Iterables.

public static class
API.For8Future<T1, T2, T3, T4, T5, T6, T7, T8>

For-comprehension with 8 Futures.

public static class
API.For8List<T1, T2, T3, T4, T5, T6, T7, T8>

For-comprehension with 8 Lists.

public static class
API.For8Option<T1, T2, T3, T4, T5, T6, T7, T8>

For-comprehension with 8 Options.

public static class
API.For8Try<T1, T2, T3, T4, T5, T6, T7, T8>

For-comprehension with 8 Trys.

public static class
API.Match<
type of the object that is matched
T
>

Scala-like structural pattern matching for Java.

Constructor Summary

AccessConstructor and Description
private
API()

Method Summary

Modifier and TypeMethod and Description
public static <
injected type of the underlying value
T
>
API.Match.Pattern0<T>

Returns:

a new Pattern0 instance
$
()

Wildcard pattern, matches any value.

public static <
type of the prototype
T
>
API.Match.Pattern0<T>

Returns:

a new Pattern0 instance
$
(T
the value that should be equal to the underlying object
prototype
)

Value pattern, checks for equality.

public static <
type of the prototype
T
>
API.Match.Pattern0<T>

Returns:

a new Pattern0 instance
$
(Predicate<? super T>
the predicate that tests a given value
predicate
)

Guard pattern, checks if a predicate is satisfied.

public static <
Component type of element.
T
>
Array<T>

Returns:

A singleton instance of empty Array
Array
()

Alias for Array#empty()

public static <
Component type of element.
T
>
Array<T>

Returns:

A new Array instance containing the given element
Array
(T
An element.
element
)

Alias for Array#of(Object)

public static <
Component type of elements.
T
>
Array<T>

Returns:

A new Array instance containing the given elements
Array
(T...
Zero or more elements.
elements
)

Alias for Array#of(Object...)

public static <T, R> API.Match.Case<T, R>
Case(API.Match.Pattern0<T> pattern, Function<? super T, ? extends R> f)

public static <T, R> API.Match.Case<T, R>
Case(API.Match.Pattern0<T> pattern, Supplier<? extends R> supplier)

public static <T, R> API.Match.Case<T, R>
Case(API.Match.Pattern0<T> pattern, R retVal)

public static <T, T1, R> API.Match.Case<T, R>
Case(API.Match.Pattern1<T, T1> pattern, Function<? super T1, ? extends R> f)

public static <T, T1, R> API.Match.Case<T, R>
Case(API.Match.Pattern1<T, T1> pattern, Supplier<? extends R> supplier)

public static <T, T1, R> API.Match.Case<T, R>
Case(API.Match.Pattern1<T, T1> pattern, R retVal)

public static <T, T1, T2, R> API.Match.Case<T, R>
Case(API.Match.Pattern2<T, T1, T2> pattern, BiFunction<? super T1, ? super T2, ? extends R> f)

public static <T, T1, T2, R> API.Match.Case<T, R>
Case(API.Match.Pattern2<T, T1, T2> pattern, Supplier<? extends R> supplier)

public static <T, T1, T2, R> API.Match.Case<T, R>
Case(API.Match.Pattern2<T, T1, T2> pattern, R retVal)

public static <T, T1, T2, T3, R> API.Match.Case<T, R>
Case(API.Match.Pattern3<T, T1, T2, T3> pattern, Function3<? super T1, ? super T2, ? super T3, ? extends R> f)

public static <T, T1, T2, T3, R> API.Match.Case<T, R>
Case(API.Match.Pattern3<T, T1, T2, T3> pattern, Supplier<? extends R> supplier)

public static <T, T1, T2, T3, R> API.Match.Case<T, R>
Case(API.Match.Pattern3<T, T1, T2, T3> pattern, R retVal)

public static <T, T1, T2, T3, T4, R> API.Match.Case<T, R>
Case(API.Match.Pattern4<T, T1, T2, T3, T4> pattern, Function4<? super T1, ? super T2, ? super T3, ? super T4, ? extends R> f)

public static <T, T1, T2, T3, T4, R> API.Match.Case<T, R>
Case(API.Match.Pattern4<T, T1, T2, T3, T4> pattern, Supplier<? extends R> supplier)

public static <T, T1, T2, T3, T4, R> API.Match.Case<T, R>
Case(API.Match.Pattern4<T, T1, T2, T3, T4> pattern, R retVal)

public static <T, T1, T2, T3, T4, T5, R> API.Match.Case<T, R>
Case(API.Match.Pattern5<T, T1, T2, T3, T4, T5> pattern, Function5<? super T1, ? super T2, ? super T3, ? super T4, ? super T5, ? extends R> f)

public static <T, T1, T2, T3, T4, T5, R> API.Match.Case<T, R>
Case(API.Match.Pattern5<T, T1, T2, T3, T4, T5> pattern, Supplier<? extends R> supplier)

public static <T, T1, T2, T3, T4, T5, R> API.Match.Case<T, R>
Case(API.Match.Pattern5<T, T1, T2, T3, T4, T5> pattern, R retVal)

public static <T, T1, T2, T3, T4, T5, T6, R> API.Match.Case<T, R>
Case(API.Match.Pattern6<T, T1, T2, T3, T4, T5, T6> pattern, Function6<? super T1, ? super T2, ? super T3, ? super T4, ? super T5, ? super T6, ? extends R> f)

public static <T, T1, T2, T3, T4, T5, T6, R> API.Match.Case<T, R>
Case(API.Match.Pattern6<T, T1, T2, T3, T4, T5, T6> pattern, Supplier<? extends R> supplier)

public static <T, T1, T2, T3, T4, T5, T6, R> API.Match.Case<T, R>
Case(API.Match.Pattern6<T, T1, T2, T3, T4, T5, T6> pattern, R retVal)

public static <T, T1, T2, T3, T4, T5, T6, T7, R> API.Match.Case<T, R>
Case(API.Match.Pattern7<T, T1, T2, T3, T4, T5, T6, T7> pattern, Function7<? super T1, ? super T2, ? super T3, ? super T4, ? super T5, ? super T6, ? super T7, ? extends R> f)

public static <T, T1, T2, T3, T4, T5, T6, T7, R> API.Match.Case<T, R>
Case(API.Match.Pattern7<T, T1, T2, T3, T4, T5, T6, T7> pattern, Supplier<? extends R> supplier)

public static <T, T1, T2, T3, T4, T5, T6, T7, R> API.Match.Case<T, R>
Case(API.Match.Pattern7<T, T1, T2, T3, T4, T5, T6, T7> pattern, R retVal)

public static <T, T1, T2, T3, T4, T5, T6, T7, T8, R> API.Match.Case<T, R>
Case(API.Match.Pattern8<T, T1, T2, T3, T4, T5, T6, T7, T8> pattern, Function8<? super T1, ? super T2, ? super T3, ? super T4, ? super T5, ? super T6, ? super T7, ? super T8, ? extends R> f)

public static <T, T1, T2, T3, T4, T5, T6, T7, T8, R> API.Match.Case<T, R>
Case(API.Match.Pattern8<T, T1, T2, T3, T4, T5, T6, T7, T8> pattern, Supplier<? extends R> supplier)

public static <T, T1, T2, T3, T4, T5, T6, T7, T8, R> API.Match.Case<T, R>
Case(API.Match.Pattern8<T, T1, T2, T3, T4, T5, T6, T7, T8> pattern, R retVal)

public static CharSeq

Returns:

A new CharSeq instance containing the given element
CharSeq
(char
A character.
character
)

Alias for CharSeq#of(char)

public static CharSeq

Returns:

A new CharSeq instance containing the given characters in the same order.
CharSeq
(char...
Zero or more characters.
characters
)

Alias for CharSeq#of(char...)

public static CharSeq

Returns:

A new CharSeq instance
CharSeq
(CharSequence
CharSequence instance.
sequence
)

Alias for CharSeq#of(CharSequence)

public static <
return type
R
>
CheckedFunction0<R>

Returns:

A CheckedFunction0
CheckedFunction
(CheckedFunction0<R>
A method reference
methodReference
)

Alias for CheckedFunction0#of(CheckedFunction0)

public static <
type of the 1st argument
T1
,
return type
R
>
CheckedFunction1<T1, R>

Returns:

A CheckedFunction1
CheckedFunction
(CheckedFunction1<T1, R>
A method reference
methodReference
)

Alias for CheckedFunction1#of(CheckedFunction1)

public static <
type of the 1st argument
T1
,
type of the 2nd argument
T2
,
return type
R
>
CheckedFunction2<T1, T2, R>

Returns:

A CheckedFunction2
CheckedFunction
(CheckedFunction2<T1, T2, R>
A method reference
methodReference
)

Alias for CheckedFunction2#of(CheckedFunction2)

public static <
type of the 1st argument
T1
,
type of the 2nd argument
T2
,
type of the 3rd argument
T3
,
return type
R
>
CheckedFunction3<T1, T2, T3, R>

Returns:

A CheckedFunction3
CheckedFunction
(CheckedFunction3<T1, T2, T3, R>
A method reference
methodReference
)

Alias for CheckedFunction3#of(CheckedFunction3)

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<T1, T2, T3, T4, R>

Returns:

A CheckedFunction4
CheckedFunction
(CheckedFunction4<T1, T2, T3, T4, R>
A method reference
methodReference
)

Alias for CheckedFunction4#of(CheckedFunction4)

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<T1, T2, T3, T4, T5, R>

Returns:

A CheckedFunction5
CheckedFunction
(CheckedFunction5<T1, T2, T3, T4, T5, R>
A method reference
methodReference
)

Alias for CheckedFunction5#of(CheckedFunction5)

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<T1, T2, T3, T4, T5, T6, R>

Returns:

A CheckedFunction6
CheckedFunction
(CheckedFunction6<T1, T2, T3, T4, T5, T6, R>
A method reference
methodReference
)

Alias for CheckedFunction6#of(CheckedFunction6)

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<T1, T2, T3, T4, T5, T6, T7, R>

Returns:

A CheckedFunction7
CheckedFunction
(CheckedFunction7<T1, T2, T3, T4, T5, T6, T7, R>
A method reference
methodReference
)

Alias for CheckedFunction7#of(CheckedFunction7)

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<T1, T2, T3, T4, T5, T6, T7, T8, R>

Returns:

A CheckedFunction8
CheckedFunction
(CheckedFunction8<T1, T2, T3, T4, T5, T6, T7, T8, R>
A method reference
methodReference
)

Alias for CheckedFunction8#of(CheckedFunction8)

public static <
Component type of the Try.
T
>
Try.Failure<T>

Returns:

A new Try.Failure.
Failure
(Throwable
An exception.
exception
)

Alias for Try#failure(Throwable)

public static <
element type of ts
T
,
component type of the resulting Iterator
U
>
Iterator<U>

Returns:

A new Iterator
For
(Iterable<T>
An iterable
ts
,
Function<? super T, ? extends Iterable<U>>
A function T -> Iterable<U>
f
)

A shortcut for Iterator.ofAll(ts).flatMap(f) which allows us to write real for-comprehensions using For(...).yield(...).

public static <
component type of the 1st Iterable
T1
>
API.For1<T1>

Returns:

a new For-comprehension of arity 1
For
(Iterable<T1>
the 1st Iterable
ts1
)

Creates a For-comprehension of one Iterable.

public static <
component type of the 1st Iterable
T1
,
component type of the 2nd Iterable
T2
>
API.For2<T1, T2>

Returns:

a new For-comprehension of arity 2
For
(Iterable<T1>
the 1st Iterable
ts1
,
Iterable<T2>
the 2nd Iterable
ts2
)

Creates a For-comprehension of two Iterables.

public static <
component type of the 1st Iterable
T1
,
component type of the 2nd Iterable
T2
,
component type of the 3rd Iterable
T3
>
API.For3<T1, T2, T3>

Returns:

a new For-comprehension of arity 3
For
(Iterable<T1>
the 1st Iterable
ts1
,
Iterable<T2>
the 2nd Iterable
ts2
,
Iterable<T3>
the 3rd Iterable
ts3
)

Creates a For-comprehension of three Iterables.

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.For4<T1, T2, T3, T4>

Returns:

a new For-comprehension of arity 4
For
(Iterable<T1>
the 1st Iterable
ts1
,
Iterable<T2>
the 2nd Iterable
ts2
,
Iterable<T3>
the 3rd Iterable
ts3
,
Iterable<T4>
the 4th Iterable
ts4
)

Creates a For-comprehension of 4 Iterables.

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.For5<T1, T2, T3, T4, T5>

Returns:

a new For-comprehension of arity 5
For
(Iterable<T1>
the 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
)

Creates a For-comprehension of 5 Iterables.

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.For6<T1, T2, T3, T4, T5, T6>

Returns:

a new For-comprehension of arity 6
For
(Iterable<T1>
the 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
)

Creates a For-comprehension of 6 Iterables.

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.For7<T1, T2, T3, T4, T5, T6, T7>

Returns:

a new For-comprehension of arity 7
For
(Iterable<T1>
the 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 For-comprehension of 7 Iterables.

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.For8<T1, T2, T3, T4, T5, T6, T7, T8>

Returns:

a new For-comprehension of arity 8
For
(Iterable<T1>
the 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 For-comprehension of 8 Iterables.

public static <
component type of the 1st Option
T1
>
API.For1Option<T1>

Returns:

a new For-comprehension of arity 1
For
(Option<T1>
the 1st Option
ts1
)

Creates a For-comprehension of one Option.

public static <
component type of the 1st Option
T1
,
component type of the 2nd Option
T2
>
API.For2Option<T1, T2>

Returns:

a new For-comprehension of arity 2
For
(Option<T1>
the 1st Option
ts1
,
Option<T2>
the 2nd Option
ts2
)

Creates a For-comprehension of two Options.

public static <
component type of the 1st Option
T1
,
component type of the 2nd Option
T2
,
component type of the 3rd Option
T3
>
API.For3Option<T1, T2, T3>

Returns:

a new For-comprehension of arity 3
For
(Option<T1>
the 1st Option
ts1
,
Option<T2>
the 2nd Option
ts2
,
Option<T3>
the 3rd Option
ts3
)

Creates a For-comprehension of three Options.

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.For4Option<T1, T2, T3, T4>

Returns:

a new For-comprehension of arity 4
For
(Option<T1>
the 1st Option
ts1
,
Option<T2>
the 2nd Option
ts2
,
Option<T3>
the 3rd Option
ts3
,
Option<T4>
the 4th Option
ts4
)

Creates a For-comprehension of 4 Options.

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.For5Option<T1, T2, T3, T4, T5>

Returns:

a new For-comprehension of arity 5
For
(Option<T1>
the 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
)

Creates a For-comprehension of 5 Options.

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.For6Option<T1, T2, T3, T4, T5, T6>

Returns:

a new For-comprehension of arity 6
For
(Option<T1>
the 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
)

Creates a For-comprehension of 6 Options.

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.For7Option<T1, T2, T3, T4, T5, T6, T7>

Returns:

a new For-comprehension of arity 7
For
(Option<T1>
the 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
)

Creates a For-comprehension of 7 Options.

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.For8Option<T1, T2, T3, T4, T5, T6, T7, T8>

Returns:

a new For-comprehension of arity 8
For
(Option<T1>
the 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 For-comprehension of 8 Options.

public static <
component type of the 1st Future
T1
>
API.For1Future<T1>

Returns:

a new For-comprehension of arity 1
For
(Future<T1>
the 1st Future
ts1
)

Creates a For-comprehension of one Future.

public static <
component type of the 1st Future
T1
,
component type of the 2nd Future
T2
>
API.For2Future<T1, T2>

Returns:

a new For-comprehension of arity 2
For
(Future<T1>
the 1st Future
ts1
,
Future<T2>
the 2nd Future
ts2
)

Creates a For-comprehension of two Futures.

public static <
component type of the 1st Future
T1
,
component type of the 2nd Future
T2
,
component type of the 3rd Future
T3
>
API.For3Future<T1, T2, T3>

Returns:

a new For-comprehension of arity 3
For
(Future<T1>
the 1st Future
ts1
,
Future<T2>
the 2nd Future
ts2
,
Future<T3>
the 3rd Future
ts3
)

Creates a For-comprehension of three Futures.

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.For4Future<T1, T2, T3, T4>

Returns:

a new For-comprehension of arity 4
For
(Future<T1>
the 1st Future
ts1
,
Future<T2>
the 2nd Future
ts2
,
Future<T3>
the 3rd Future
ts3
,
Future<T4>
the 4th Future
ts4
)

Creates a For-comprehension of 4 Futures.

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.For5Future<T1, T2, T3, T4, T5>

Returns:

a new For-comprehension of arity 5
For
(Future<T1>
the 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
)

Creates a For-comprehension of 5 Futures.

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.For6Future<T1, T2, T3, T4, T5, T6>

Returns:

a new For-comprehension of arity 6
For
(Future<T1>
the 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
)

Creates a For-comprehension of 6 Futures.

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.For7Future<T1, T2, T3, T4, T5, T6, T7>

Returns:

a new For-comprehension of arity 7
For
(Future<T1>
the 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
)

Creates a For-comprehension of 7 Futures.

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.For8Future<T1, T2, T3, T4, T5, T6, T7, T8>

Returns:

a new For-comprehension of arity 8
For
(Future<T1>
the 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 For-comprehension of 8 Futures.

public static <
component type of the 1st Try
T1
>
API.For1Try<T1>

Returns:

a new For-comprehension of arity 1
For
(Try<T1>
the 1st Try
ts1
)

Creates a For-comprehension of one Try.

public static <
component type of the 1st Try
T1
,
component type of the 2nd Try
T2
>
API.For2Try<T1, T2>

Returns:

a new For-comprehension of arity 2
For
(Try<T1>
the 1st Try
ts1
,
Try<T2>
the 2nd Try
ts2
)

Creates a For-comprehension of two Trys.

public static <
component type of the 1st Try
T1
,
component type of the 2nd Try
T2
,
component type of the 3rd Try
T3
>
API.For3Try<T1, T2, T3>

Returns:

a new For-comprehension of arity 3
For
(Try<T1>
the 1st Try
ts1
,
Try<T2>
the 2nd Try
ts2
,
Try<T3>
the 3rd Try
ts3
)

Creates a For-comprehension of three Trys.

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.For4Try<T1, T2, T3, T4>

Returns:

a new For-comprehension of arity 4
For
(Try<T1>
the 1st Try
ts1
,
Try<T2>
the 2nd Try
ts2
,
Try<T3>
the 3rd Try
ts3
,
Try<T4>
the 4th Try
ts4
)

Creates a For-comprehension of 4 Trys.

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.For5Try<T1, T2, T3, T4, T5>

Returns:

a new For-comprehension of arity 5
For
(Try<T1>
the 1st Try
ts1
,
Try<T2>
the 2nd Try
ts2
,
Try<T3>
the 3rd Try
ts3
,
Try<T4>
the 4th Try
ts4
,
Try<T5>
the 5th Try
ts5
)

Creates a For-comprehension of 5 Trys.

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.For6Try<T1, T2, T3, T4, T5, T6>

Returns:

a new For-comprehension of arity 6
For
(Try<T1>
the 1st Try
ts1
,
Try<T2>
the 2nd Try
ts2
,
Try<T3>
the 3rd Try
ts3
,
Try<T4>
the 4th Try
ts4
,
Try<T5>
the 5th Try
ts5
,
Try<T6>
the 6th Try
ts6
)

Creates a For-comprehension of 6 Trys.

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.For7Try<T1, T2, T3, T4, T5, T6, T7>

Returns:

a new For-comprehension of arity 7
For
(Try<T1>
the 1st Try
ts1
,
Try<T2>
the 2nd Try
ts2
,
Try<T3>
the 3rd Try
ts3
,
Try<T4>
the 4th Try
ts4
,
Try<T5>
the 5th Try
ts5
,
Try<T6>
the 6th Try
ts6
,
Try<T7>
the 7th Try
ts7
)

Creates a For-comprehension of 7 Trys.

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.For8Try<T1, T2, T3, T4, T5, T6, T7, T8>

Returns:

a new For-comprehension of arity 8
For
(Try<T1>
the 1st Try
ts1
,
Try<T2>
the 2nd Try
ts2
,
Try<T3>
the 3rd Try
ts3
,
Try<T4>
the 4th Try
ts4
,
Try<T5>
the 5th Try
ts5
,
Try<T6>
the 6th Try
ts6
,
Try<T7>
the 7th Try
ts7
,
Try<T8>
the 8th Try
ts8
)

Creates a For-comprehension of 8 Trys.

public static <
component type of the 1st List
T1
>
API.For1List<T1>

Returns:

a new For-comprehension of arity 1
For
(List<T1>
the 1st List
ts1
)

Creates a For-comprehension of one List.

public static <
component type of the 1st List
T1
,
component type of the 2nd List
T2
>
API.For2List<T1, T2>

Returns:

a new For-comprehension of arity 2
For
(List<T1>
the 1st List
ts1
,
List<T2>
the 2nd List
ts2
)

Creates a For-comprehension of two Lists.

public static <
component type of the 1st List
T1
,
component type of the 2nd List
T2
,
component type of the 3rd List
T3
>
API.For3List<T1, T2, T3>

Returns:

a new For-comprehension of arity 3
For
(List<T1>
the 1st List
ts1
,
List<T2>
the 2nd List
ts2
,
List<T3>
the 3rd List
ts3
)

Creates a For-comprehension of three Lists.

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.For4List<T1, T2, T3, T4>

Returns:

a new For-comprehension of arity 4
For
(List<T1>
the 1st List
ts1
,
List<T2>
the 2nd List
ts2
,
List<T3>
the 3rd List
ts3
,
List<T4>
the 4th List
ts4
)

Creates a For-comprehension of 4 Lists.

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.For5List<T1, T2, T3, T4, T5>

Returns:

a new For-comprehension of arity 5
For
(List<T1>
the 1st List
ts1
,
List<T2>
the 2nd List
ts2
,
List<T3>
the 3rd List
ts3
,
List<T4>
the 4th List
ts4
,
List<T5>
the 5th List
ts5
)

Creates a For-comprehension of 5 Lists.

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.For6List<T1, T2, T3, T4, T5, T6>

Returns:

a new For-comprehension of arity 6
For
(List<T1>
the 1st List
ts1
,
List<T2>
the 2nd List
ts2
,
List<T3>
the 3rd List
ts3
,
List<T4>
the 4th List
ts4
,
List<T5>
the 5th List
ts5
,
List<T6>
the 6th List
ts6
)

Creates a For-comprehension of 6 Lists.

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.For7List<T1, T2, T3, T4, T5, T6, T7>

Returns:

a new For-comprehension of arity 7
For
(List<T1>
the 1st List
ts1
,
List<T2>
the 2nd List
ts2
,
List<T3>
the 3rd List
ts3
,
List<T4>
the 4th List
ts4
,
List<T5>
the 5th List
ts5
,
List<T6>
the 6th List
ts6
,
List<T7>
the 7th List
ts7
)

Creates a For-comprehension of 7 Lists.

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.For8List<T1, T2, T3, T4, T5, T6, T7, T8>

Returns:

a new For-comprehension of arity 8
For
(List<T1>
the 1st List
ts1
,
List<T2>
the 2nd List
ts2
,
List<T3>
the 3rd List
ts3
,
List<T4>
the 4th List
ts4
,
List<T5>
the 5th List
ts5
,
List<T6>
the 6th List
ts6
,
List<T7>
the 7th List
ts7
,
List<T8>
the 8th List
ts8
)

Creates a For-comprehension of 8 Lists.

public static <
return type
R
>
Function0<R>

Returns:

A Function0
Function
(Function0<R>
A method reference
methodReference
)

Alias for Function0#of(Function0)

public static <
type of the 1st argument
T1
,
return type
R
>
Function1<T1, R>

Returns:

A Function1
Function
(Function1<T1, R>
A method reference
methodReference
)

Alias for Function1#of(Function1)

public static <
type of the 1st argument
T1
,
type of the 2nd argument
T2
,
return type
R
>
Function2<T1, T2, R>

Returns:

A Function2
Function
(Function2<T1, T2, R>
A method reference
methodReference
)

Alias for Function2#of(Function2)

public static <
type of the 1st argument
T1
,
type of the 2nd argument
T2
,
type of the 3rd argument
T3
,
return type
R
>
Function3<T1, T2, T3, R>

Returns:

A Function3
Function
(Function3<T1, T2, T3, R>
A method reference
methodReference
)

Alias for Function3#of(Function3)

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<T1, T2, T3, T4, R>

Returns:

A Function4
Function
(Function4<T1, T2, T3, T4, R>
A method reference
methodReference
)

Alias for Function4#of(Function4)

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<T1, T2, T3, T4, T5, R>

Returns:

A Function5
Function
(Function5<T1, T2, T3, T4, T5, R>
A method reference
methodReference
)

Alias for Function5#of(Function5)

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<T1, T2, T3, T4, T5, T6, R>

Returns:

A Function6
Function
(Function6<T1, T2, T3, T4, T5, T6, R>
A method reference
methodReference
)

Alias for Function6#of(Function6)

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<T1, T2, T3, T4, T5, T6, T7, R>

Returns:

A Function7
Function
(Function7<T1, T2, T3, T4, T5, T6, T7, R>
A method reference
methodReference
)

Alias for Function7#of(Function7)

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<T1, T2, T3, T4, T5, T6, T7, T8, R>

Returns:

A Function8
Function
(Function8<T1, T2, T3, T4, T5, T6, T7, T8, R>
A method reference
methodReference
)

Alias for Function8#of(Function8)

public static <
Type of the computation result.
T
>
Future<T>

Returns:

A new Future instance.
Future
(CheckedFunction0<? extends T>
A computation.
computation
)

Alias for Future#of(CheckedFunction0)

public static <
Type of the computation result.
T
>
Future<T>

Returns:

A new Future instance.
Future
(Executor
An executor service.
executorService
,
CheckedFunction0<? extends T>
A computation.
computation
)

Alias for Future#of(Executor, CheckedFunction0)

public static <
The value type of a successful result.
T
>
Future<T>

Returns:

A succeeded Future.
Future
(T
The result.
result
)

Alias for Future#successful(Object)

public static <
The value type of a successful result.
T
>
Future<T>

Returns:

A succeeded Future.
Future
(Executor
An ExecutorService.
executorService
,
T
The result.
result
)

Alias for Future#successful(Executor, Object)

public static <
Component type of element.
T
>
IndexedSeq<T>

Returns:

A singleton instance of empty Vector
IndexedSeq
()

Alias for Vector#empty()

public static <
Component type of element.
T
>
IndexedSeq<T>

Returns:

A new Vector instance containing the given element
IndexedSeq
(T
An element.
element
)

Alias for Vector#of(Object)

public static <
Component type of elements.
T
>
IndexedSeq<T>

Returns:

A new Vector instance containing the given elements
IndexedSeq
(T...
Zero or more elements.
elements
)

Alias for Vector#of(Object...)

public static <
type of the given error
E
,
type of the value
T
>
Validation.Invalid<E, T>
Invalid(E
An error
error
)

Alias for Validation#invalid(Object)

public static <
type of the lazy value
T
>
Lazy<T>

Returns:

A new instance of Lazy
Lazy
(Supplier<? extends T>
A supplier
supplier
)

Alias for Lazy#of(Supplier)

public static <
Type of left value.
L
,
Type of right value.
R
>
Either.Left<L, R>

Returns:

A new Either.Left instance.
Left
(L
The value.
left
)

Alias for Either#left(Object)

public static <
The key type.
K
,
The value type.
V
>
Map<K, V>

Returns:

A singleton instance of empty LinkedHashMap
LinkedMap
()

Alias for LinkedHashMap#empty()

public static <
The key type.
K
,
The value type.
V
>
Map<K, V>

Returns:

A new LinkedHashMap instance containing the given entries
LinkedMap
(Tuple2<? extends K, ? extends V>...
Map entries.
entries
)
Deprecated Will be removed in a future version.

Alias for LinkedHashMap#ofEntries(Tuple2...)

public static <
The key type.
K
,
The value type.
V
>
Map<K, V>

Returns:

A new LinkedHashMap instance containing the given entries
LinkedMap
(K
The key
k1
,
V
The value
v1
)

Alias for LinkedHashMap#of(Object, Object)

public static <
The key type.
K
,
The value type.
V
>
Map<K, V>

Returns:

A new LinkedHashMap instance containing the given entries
LinkedMap
(K
The 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 LinkedHashMap#of(Object, Object, Object, Object)

public static <
The key type.
K
,
The value type.
V
>
Map<K, V>

Returns:

A new LinkedHashMap instance containing the given entries
LinkedMap
(K
The 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 LinkedHashMap#of(Object, Object, Object, Object, Object, Object)

public static <
The key type.
K
,
The value type.
V
>
Map<K, V>

Returns:

A new LinkedHashMap instance containing the given entries
LinkedMap
(K
The 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 LinkedHashMap#of(Object, Object, Object, Object, Object, Object, Object, Object)

public static <
The key type.
K
,
The value type.
V
>
Map<K, V>

Returns:

A new LinkedHashMap instance containing the given entries
LinkedMap
(K
The 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 LinkedHashMap#of(Object, Object, Object, Object, Object, Object, Object, Object, Object, Object)

public static <
The key type.
K
,
The value type.
V
>
Map<K, V>

Returns:

A new LinkedHashMap instance containing the given entries
LinkedMap
(K
The 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
)

Alias for LinkedHashMap#of(Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object)

public static <
The key type.
K
,
The value type.
V
>
Map<K, V>

Returns:

A new LinkedHashMap instance containing the given entries
LinkedMap
(K
The 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
)

Alias for LinkedHashMap#of(Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object)

public static <
The key type.
K
,
The value type.
V
>
Map<K, V>

Returns:

A new LinkedHashMap instance containing the given entries
LinkedMap
(K
The 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
)

Alias for LinkedHashMap#of(Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object)

public static <
The key type.
K
,
The value type.
V
>
Map<K, V>

Returns:

A new LinkedHashMap instance containing the given entries
LinkedMap
(K
The 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
)

Alias for LinkedHashMap#of(Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object)

public static <
The key type.
K
,
The value type.
V
>
Map<K, V>

Returns:

A new LinkedHashMap instance containing the given entries
LinkedMap
(K
The 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
)

Alias for LinkedHashMap#of(Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object)

public static <
Component type of element.
T
>
Set<T>

Returns:

A singleton instance of empty LinkedHashSet
LinkedSet
()

Alias for LinkedHashSet#empty()

public static <
Component type of element.
T
>
Set<T>

Returns:

A new LinkedHashSet instance containing the given element
LinkedSet
(T
An element.
element
)

Alias for LinkedHashSet#of(Object)

public static <
Component type of elements.
T
>
Set<T>

Returns:

A new LinkedHashSet instance containing the given elements
LinkedSet
(T...
Zero or more elements.
elements
)

Alias for LinkedHashSet#of(Object...)

public static <
Component type of element.
T
>
List<T>

Returns:

A singleton instance of empty List
List
()

Alias for List#empty()

public static <
Component type of element.
T
>
List<T>

Returns:

A new List instance containing the given element
List
(T
An element.
element
)

Alias for List#of(Object)

public static <
Component type of elements.
T
>
List<T>

Returns:

A new List instance containing the given elements
List
(T...
Zero or more elements.
elements
)

Alias for List#of(Object...)

public static <
The key type.
K
,
The value type.
V
>
Map<K, V>

Returns:

A singleton instance of empty HashMap
Map
()

Alias for HashMap#empty()

public static <
The key type.
K
,
The value type.
V
>
Map<K, V>

Returns:

A new HashMap instance containing the given entries
Map
(Tuple2<? extends K, ? extends V>...
Map entries.
entries
)
Deprecated Will be removed in a future version.

Alias for HashMap#ofEntries(Tuple2...)

public static <
The key type.
K
,
The value type.
V
>
Map<K, V>

Returns:

A new HashMap instance containing the given entries
Map
(K
The key
k1
,
V
The value
v1
)

Alias for HashMap#of(Object, Object)

public static <
The key type.
K
,
The value type.
V
>
Map<K, V>

Returns:

A new HashMap instance containing the given entries
Map
(K
The 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 HashMap#of(Object, Object, Object, Object)

public static <
The key type.
K
,
The value type.
V
>
Map<K, V>

Returns:

A new HashMap instance containing the given entries
Map
(K
The 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 HashMap#of(Object, Object, Object, Object, Object, Object)

public static <
The key type.
K
,
The value type.
V
>
Map<K, V>

Returns:

A new HashMap instance containing the given entries
Map
(K
The 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 HashMap#of(Object, Object, Object, Object, Object, Object, Object, Object)

public static <
The key type.
K
,
The value type.
V
>
Map<K, V>

Returns:

A new HashMap instance containing the given entries
Map
(K
The 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 HashMap#of(Object, Object, Object, Object, Object, Object, Object, Object, Object, Object)

public static <
The key type.
K
,
The value type.
V
>
Map<K, V>

Returns:

A new HashMap instance containing the given entries
Map
(K
The 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
)

Alias for HashMap#of(Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object)

public static <
The key type.
K
,
The value type.
V
>
Map<K, V>

Returns:

A new HashMap instance containing the given entries
Map
(K
The 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
)

Alias for HashMap#of(Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object)

public static <
The key type.
K
,
The value type.
V
>
Map<K, V>

Returns:

A new HashMap instance containing the given entries
Map
(K
The 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
)

Alias for HashMap#of(Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object)

public static <
The key type.
K
,
The value type.
V
>
Map<K, V>

Returns:

A new HashMap instance containing the given entries
Map
(K
The 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
)

Alias for HashMap#of(Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object)

public static <
The key type.
K
,
The value type.
V
>
Map<K, V>

Returns:

A new HashMap instance containing the given entries
Map
(K
The 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
)

Alias for HashMap#of(Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object)

public static <
type of the value
T
>
API.Match<T>

Returns:

a new Match instance
Match
(T
a value to be matched
value
)

Entry point of the match API.

public static <
component type
T
>
Option.None<T>

Returns:

the singleton instance of Option.None
None
()

Alias for Option#none()

public static <
type of the value
T
>
Option<T>

Returns:

Option.Some if value is not null, Option.None otherwise
Option
(T
A value
value
)

Alias for Option#of(Object)

public static void
printf(String
A format string as described in Formatter.
format
,
Object...
Arguments referenced by the format specifiers
args
)

Shortcut for System.out.printf(format, args).

public static void
println(Object
The Object to be printed
obj
)

Shortcut for System.out.println(obj).

public static void
println()

Shortcut for System.out.println().

public static <
Component type of element.
T extends Comparable<? super T>
>
PriorityQueue<T>

Returns:

A new PriorityQueue empty instance
PriorityQueue
()

Alias for PriorityQueue#empty()

public static <
Component type of element.
T extends Comparable<? super T>
>
PriorityQueue<T>

Returns:

A new PriorityQueue empty instance
PriorityQueue
(Comparator<? super T>
The comparator used to sort the elements
comparator
)

Alias for PriorityQueue#empty(Comparator)

public static <
Component type of element.
T extends Comparable<? super T>
>
PriorityQueue<T>

Returns:

A new PriorityQueue instance containing the given element
PriorityQueue
(T
An element.
element
)

Alias for PriorityQueue#of(Comparable)

public static <
Component type of element.
T
>
PriorityQueue<T>

Returns:

A new PriorityQueue instance containing the given element
PriorityQueue
(Comparator<? super T>
The comparator used to sort the elements
comparator
,
T
An element.
element
)

Alias for PriorityQueue#of(Comparator, Object)

public static <
Component type of element.
T extends Comparable<? super T>
>
PriorityQueue<T>

Returns:

A new PriorityQueue instance containing the given elements
PriorityQueue
(T...
Zero or more elements.
elements
)

Alias for PriorityQueue#of(Comparable...)

public static <
Component type of element.
T
>
PriorityQueue<T>

Returns:

A new PriorityQueue instance containing the given elements
PriorityQueue
(Comparator<? super T>
The comparator used to sort the elements
comparator
,
T...
Zero or more elements.
elements
)

Alias for PriorityQueue#of(Comparator, Object...)

public static <
Component type of element.
T
>
Queue<T>

Returns:

A singleton instance of empty Queue
Queue
()

Alias for Queue#empty()

public static <
Component type of element.
T
>
Queue<T>

Returns:

A new Queue instance containing the given element
Queue
(T
An element.
element
)

Alias for Queue#of(Object)

public static <
Component type of elements.
T
>
Queue<T>

Returns:

A new Queue instance containing the given elements
Queue
(T...
Zero or more elements.
elements
)

Alias for Queue#of(Object...)

public static <
Type of left value.
L
,
Type of right value.
R
>
Either.Right<L, R>

Returns:

A new Either.Right instance.
Right
(R
The value.
right
)

Alias for Either#right(Object)

public static Void

Returns:

the single instance of Void, namely null
run
(Runnable
A block of code to be run.
unit
)

Runs a unit of work and returns Void.

public static <
Component type of element.
T
>
Seq<T>

Returns:

A singleton instance of empty List
Seq
()

Alias for List#empty()

public static <
Component type of element.
T
>
Seq<T>

Returns:

A new List instance containing the given element
Seq
(T
An element.
element
)

Alias for List#of(Object)

public static <
Component type of elements.
T
>
Seq<T>

Returns:

A new List instance containing the given elements
Seq
(T...
Zero or more elements.
elements
)

Alias for List#of(Object...)

public static <
Component type of element.
T
>
Set<T>

Returns:

A singleton instance of empty HashSet
Set
()

Alias for HashSet#empty()

public static <
Component type of element.
T
>
Set<T>

Returns:

A new HashSet instance containing the given element
Set
(T
An element.
element
)

Alias for HashSet#of(Object)

public static <
Component type of elements.
T
>
Set<T>

Returns:

A new HashSet instance containing the given elements
Set
(T...
Zero or more elements.
elements
)

Alias for HashSet#of(Object...)

public static <
type of the value
T
>
Option.Some<T>

Returns:

Option.Some
Some
(T
A value
value
)

Alias for Option#some(Object)

public static <
The key type.
K extends Comparable<? super K>
,
The value type.
V
>
SortedMap<K, V>

Returns:

A new empty TreeMap instance
SortedMap
()

Alias for TreeMap#empty()

public static <
The key type.
K
,
The value type.
V
>
SortedMap<K, V>

Returns:

A new empty TreeMap instance
SortedMap
(Comparator<? super K>
The comparator used to sort the entries by their key
keyComparator
)

Alias for TreeMap#empty(Comparator)

public static <
The key type.
K
,
The value type.
V
>
SortedMap<K, V>

Returns:

A new TreeMap instance containing the given entry
SortedMap
(Comparator<? super K>
The comparator used to sort the entries by their key
keyComparator
,
K
A singleton map key.
key
,
V
A singleton map value.
value
)

Alias for TreeMap#of(Comparator, Object, Object)

public static <
The key type.
K extends Comparable<? super K>
,
The value type.
V
>
SortedMap<K, V>

Returns:

A new TreeMap instance containing the given entries
SortedMap
(Tuple2<? extends K, ? extends V>...
Map entries.
entries
)
Deprecated Will be removed in a future version.

Alias for TreeMap#ofEntries(Tuple2...)

public static <
The key type.
K
,
The value type.
V
>
SortedMap<K, V>

Returns:

A new TreeMap instance containing the given entry
SortedMap
(Comparator<? super K>
The 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 TreeMap#ofEntries(Comparator, Tuple2...)

public static <
The key type.
K extends Comparable<? super K>
,
The value type.
V
>
SortedMap<K, V>

Returns:

A new TreeMap instance containing the given map
SortedMap
(Map<? extends K, ? extends V>
A map entry.
map
)
Deprecated Will be removed in a future version.

Alias for TreeMap#ofAll(java.util.Map)

public static <
The key type.
K extends Comparable<? super K>
,
The value type.
V
>
SortedMap<K, V>

Returns:

A new TreeMap instance containing the given entries
SortedMap
(K
The key
k1
,
V
The value
v1
)

Alias for TreeMap#of(Comparable, Object)

public static <
The key type.
K extends Comparable<? super K>
,
The value type.
V
>
SortedMap<K, V>

Returns:

A new TreeMap instance containing the given entries
SortedMap
(K
The 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 TreeMap#of(Comparable, Object, Comparable, Object)

public static <
The key type.
K extends Comparable<? super K>
,
The value type.
V
>
SortedMap<K, V>

Returns:

A new TreeMap instance containing the given entries
SortedMap
(K
The 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 TreeMap#of(Comparable, Object, Comparable, Object, Comparable, Object)

public static <
The key type.
K extends Comparable<? super K>
,
The value type.
V
>
SortedMap<K, V>

Returns:

A new TreeMap instance containing the given entries
SortedMap
(K
The 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 TreeMap#of(Comparable, Object, Comparable, Object, Comparable, Object, Comparable, Object)

public static <
The key type.
K extends Comparable<? super K>
,
The value type.
V
>
SortedMap<K, V>

Returns:

A new TreeMap instance containing the given entries
SortedMap
(K
The 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 TreeMap#of(Comparable, Object, Comparable, Object, Comparable, Object, Comparable, Object, Comparable, Object)

public static <
The key type.
K extends Comparable<? super K>
,
The value type.
V
>
SortedMap<K, V>

Returns:

A new TreeMap instance containing the given entries
SortedMap
(K
The 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
)

Alias for TreeMap#of(Comparable, Object, Comparable, Object, Comparable, Object, Comparable, Object, Comparable, Object, Comparable, Object)

public static <
The key type.
K extends Comparable<? super K>
,
The value type.
V
>
SortedMap<K, V>

Returns:

A new TreeMap instance containing the given entries
SortedMap
(K
The 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
)

Alias for TreeMap#of(Comparable, Object, Comparable, Object, Comparable, Object, Comparable, Object, Comparable, Object, Comparable, Object, Comparable, Object)

public static <
The key type.
K extends Comparable<? super K>
,
The value type.
V
>
SortedMap<K, V>

Returns:

A new TreeMap instance containing the given entries
SortedMap
(K
The 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
)

Alias for TreeMap#of(Comparable, Object, Comparable, Object, Comparable, Object, Comparable, Object, Comparable, Object, Comparable, Object, Comparable, Object, Comparable, Object)

public static <
The key type.
K extends Comparable<? super K>
,
The value type.
V
>
SortedMap<K, V>

Returns:

A new TreeMap instance containing the given entries
SortedMap
(K
The 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
)

Alias for TreeMap#of(Comparable, Object, Comparable, Object, Comparable, Object, Comparable, Object, Comparable, Object, Comparable, Object, Comparable, Object, Comparable, Object, Comparable, Object)

public static <
The key type.
K extends Comparable<? super K>
,
The value type.
V
>
SortedMap<K, V>

Returns:

A new TreeMap instance containing the given entries
SortedMap
(K
The 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
)

Alias for TreeMap#of(Comparable, Object, Comparable, Object, Comparable, Object, Comparable, Object, Comparable, Object, Comparable, Object, Comparable, Object, Comparable, Object, Comparable, Object, Comparable, Object)

public static <
Component type of element.
T extends Comparable<? super T>
>
SortedSet<T>

Returns:

A new TreeSet empty instance
SortedSet
()

Alias for TreeSet#empty()

public static <
Component type of element.
T extends Comparable<? super T>
>
SortedSet<T>

Returns:

A new TreeSet empty instance
SortedSet
(Comparator<? super T>
The comparator used to sort the elements
comparator
)

Alias for TreeSet#empty(Comparator)

public static <
Component type of element.
T extends Comparable<? super T>
>
SortedSet<T>

Returns:

A new TreeSet instance containing the given element
SortedSet
(T
An element.
element
)

Alias for TreeSet#of(Comparable)

public static <
Component type of element.
T
>
SortedSet<T>

Returns:

A new TreeSet instance containing the given element
SortedSet
(Comparator<? super T>
The comparator used to sort the elements
comparator
,
T
An element.
element
)

Alias for TreeSet#of(Comparator, Object)

public static <
Component type of element.
T extends Comparable<? super T>
>
SortedSet<T>

Returns:

A new TreeSet instance containing the given elements
SortedSet
(T...
Zero or more elements.
elements
)

Alias for TreeSet#of(Comparable...)

public static <
Component type of element.
T
>
SortedSet<T>

Returns:

A new TreeSet instance containing the given elements
SortedSet
(Comparator<? super T>
The comparator used to sort the elements
comparator
,
T...
Zero or more elements.
elements
)

Alias for TreeSet#of(Comparator, Object...)

public static <
Component type of element.
T
>
Stream<T>

Returns:

A singleton instance of empty Stream
Stream
()

Alias for Stream#empty()

public static <
Component type of element.
T
>
Stream<T>

Returns:

A new Stream instance containing the given element
Stream
(T
An element.
element
)

Alias for Stream#of(Object)

public static <
Component type of elements.
T
>
Stream<T>

Returns:

A new Stream instance containing the given elements
Stream
(T...
Zero or more elements.
elements
)

Alias for Stream#of(Object...)

public static <
Type of the given value.
T
>
Try.Success<T>

Returns:

A new Try.Success.
Success
(T
A value.
value
)

Alias for Try#success(Object)

public static <
The result type of the missing implementation.
T
>
T

Returns:

Nothing - this methods always throws.
TODO
()

A temporary replacement for an implementations used during prototyping.

public static <
The result type of the missing implementation.
T
>
T

Returns:

Nothing - this methods always throws.
TODO
(String
An error message
msg
)

A temporary replacement for an implementations used during prototyping.

public static <
Component type
T
>
Try<T>

Returns:

Try.Success if no exception occurs, otherwise Try.Failure if an exception occurs calling supplier.get().
Try
(CheckedFunction0<? extends T>
A checked supplier
supplier
)

Alias for Try#of(CheckedFunction0)

public static Tuple0

Returns:

the empty tuple.
Tuple
()

Alias for Tuple#empty()

public static <
type of the 1st element
T1
>
Tuple1<T1>

Returns:

a tuple of one element.
Tuple
(T1
the 1st element
t1
)

Alias for Tuple#of(Object) Creates a tuple of one element.

public static <
type of the 1st element
T1
,
type of the 2nd element
T2
>
Tuple2<T1, T2>

Returns:

a tuple of two elements.
Tuple
(T1
the 1st element
t1
,
T2
the 2nd element
t2
)

Alias for Tuple#of(Object, Object) Creates a tuple of two elements.

public static <
type of the 1st element
T1
,
type of the 2nd element
T2
,
type of the 3rd element
T3
>
Tuple3<T1, T2, T3>

Returns:

a tuple of three elements.
Tuple
(T1
the 1st element
t1
,
T2
the 2nd element
t2
,
T3
the 3rd element
t3
)

Alias for Tuple#of(Object, Object, Object) Creates a tuple of three elements.

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<T1, T2, T3, T4>

Returns:

a tuple of 4 elements.
Tuple
(T1
the 1st element
t1
,
T2
the 2nd element
t2
,
T3
the 3rd element
t3
,
T4
the 4th element
t4
)

Alias for Tuple#of(Object, Object, Object, Object) Creates a tuple of 4 elements.

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<T1, T2, T3, T4, T5>

Returns:

a tuple of 5 elements.
Tuple
(T1
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 Tuple#of(Object, Object, Object, Object, Object) Creates a tuple of 5 elements.

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<T1, T2, T3, T4, T5, T6>

Returns:

a tuple of 6 elements.
Tuple
(T1
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 Tuple#of(Object, Object, Object, Object, Object, Object) Creates a tuple of 6 elements.

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<T1, T2, T3, T4, T5, T6, T7>

Returns:

a tuple of 7 elements.
Tuple
(T1
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 Tuple#of(Object, Object, Object, Object, Object, Object, Object) Creates a tuple of 7 elements.

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<T1, T2, T3, T4, T5, T6, T7, T8>

Returns:

a tuple of 8 elements.
Tuple
(T1
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 Tuple#of(Object, Object, Object, Object, Object, Object, Object, Object) Creates a tuple of 8 elements.

public static <
return type
R
>
Function0<R>

Returns:

An unchecked wrapper of supplied CheckedFunction0
unchecked
(CheckedFunction0<R>
A method reference
f
)

Alias for CheckedFunction0#unchecked

public static <
type of the 1st argument
T1
,
return type
R
>
Function1<T1, R>

Returns:

An unchecked wrapper of supplied CheckedFunction1
unchecked
(CheckedFunction1<T1, R>
A method reference
f
)

Alias for CheckedFunction1#unchecked

public static <
type of the 1st argument
T1
,
type of the 2nd argument
T2
,
return type
R
>
Function2<T1, T2, R>

Returns:

An unchecked wrapper of supplied CheckedFunction2
unchecked
(CheckedFunction2<T1, T2, R>
A method reference
f
)

Alias for CheckedFunction2#unchecked

public static <
type of the 1st argument
T1
,
type of the 2nd argument
T2
,
type of the 3rd argument
T3
,
return type
R
>
Function3<T1, T2, T3, R>

Returns:

An unchecked wrapper of supplied CheckedFunction3
unchecked
(CheckedFunction3<T1, T2, T3, R>
A method reference
f
)

Alias for CheckedFunction3#unchecked

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<T1, T2, T3, T4, R>

Returns:

An unchecked wrapper of supplied CheckedFunction4
unchecked
(CheckedFunction4<T1, T2, T3, T4, R>
A method reference
f
)

Alias for CheckedFunction4#unchecked

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<T1, T2, T3, T4, T5, R>

Returns:

An unchecked wrapper of supplied CheckedFunction5
unchecked
(CheckedFunction5<T1, T2, T3, T4, T5, R>
A method reference
f
)

Alias for CheckedFunction5#unchecked

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<T1, T2, T3, T4, T5, T6, R>

Returns:

An unchecked wrapper of supplied CheckedFunction6
unchecked
(CheckedFunction6<T1, T2, T3, T4, T5, T6, R>
A method reference
f
)

Alias for CheckedFunction6#unchecked

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<T1, T2, T3, T4, T5, T6, T7, R>

Returns:

An unchecked wrapper of supplied CheckedFunction7
unchecked
(CheckedFunction7<T1, T2, T3, T4, T5, T6, T7, R>
A method reference
f
)

Alias for CheckedFunction7#unchecked

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<T1, T2, T3, T4, T5, T6, T7, T8, R>

Returns:

An unchecked wrapper of supplied CheckedFunction8
unchecked
(CheckedFunction8<T1, T2, T3, T4, T5, T6, T7, T8, R>
A method reference
f
)

Alias for CheckedFunction8#unchecked

public static <
type of the error
E
,
type of the given value
T
>
Validation.Valid<E, T>
Valid(T
A value
value
)

Alias for Validation#valid(Object)

public static <
Component type of element.
T
>
Vector<T>

Returns:

A singleton instance of empty Vector
Vector
()

Alias for Vector#empty()

public static <
Component type of element.
T
>
Vector<T>

Returns:

A new Vector instance containing the given element
Vector
(T
An element.
element
)

Alias for Vector#of(Object)

public static <
Component type of elements.
T
>
Vector<T>

Returns:

A new Vector instance containing the given elements
Vector
(T...
Zero or more elements.
elements
)

Alias for Vector#of(Object...)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait