| Modifier and Type | Class and Description |
|---|---|
static class |
Either.Left<L,R>
The
Left type. |
static class |
Either.Right<L,R>
The
Right type. |
| Modifier and Type | Method and Description |
|---|---|
Either<L,R2> |
EitherFunction.apply(R1 value) |
Either<L,R2> |
EitherBiFunction.apply(R1 value,
B value2) |
<R2,B> Either<L,R2> |
Either.bind(EitherBiFunction<L,R,B,R2> f,
B value)
Chains this either to a function that accepts its rights argument and an
additional argument and returns an Either.
|
<R2> Either<L,R2> |
Either.bind(EitherFunction<L,R,R2> f)
Chains this either to a functions that accepts its right argument and
returns an Either.
|
static <L,R> Either<L,R> |
Either.left(L value)
Creates a left value.
|
static <L,R> Either<L,R> |
Either.left(L value,
Class<R> rightType)
Creates a left value.
|
<B,R2> Either<L,R2> |
Either.map(BiFunction<R,B,R2> f,
B value)
Chains this either to an ordinary function.
|
<R2> Either<L,R2> |
Either.map(Function<R,R2> f)
Chains this either to an ordinary function.
|
static <L,R> Either<L,R> |
Either.right(R value)
Creates a right value.
|
static <L,R> Either<L,R> |
Either.right(R value,
Class<L> leftType)
Creates a right value.
|
| Modifier and Type | Method and Description |
|---|---|
static <L,R> de.scravy.pair.Pair<List<L>,List<R>> |
Eithers.parition(Collection<Either<L,R>> source) |
static <L,R> void |
Eithers.partitionInto(Collection<Either<L,R>> source,
Collection<L> lefts,
Collection<R> rights) |
Copyright © 2015. All rights reserved.