public final class Either<L,R> extends Object
| Modifier and Type | Method and Description |
|---|---|
void |
apply(java.util.function.Consumer<? super L> lFunc,
java.util.function.Consumer<? super R> rFunc) |
static <RESULT> Either<scala.concurrent.Future<RESULT>,Failure> |
empty() |
Optional<L> |
left() |
static <L,R> Either<L,R> |
left(L value) |
<T> T |
map(java.util.function.Function<? super L,? extends T> lFunc,
java.util.function.Function<? super R,? extends T> rFunc) |
<T> Either<T,R> |
mapLeft(java.util.function.Function<? super L,? extends T> lFunc) |
<T> Either<L,T> |
mapRight(java.util.function.Function<? super R,? extends T> rFunc) |
Optional<R> |
right() |
static <L,R> Either<L,R> |
right(R value) |
public static <L,R> Either<L,R> left(L value)
public static <L,R> Either<L,R> right(R value)
public <T> T map(java.util.function.Function<? super L,? extends T> lFunc, java.util.function.Function<? super R,? extends T> rFunc)
public <T> Either<T,R> mapLeft(java.util.function.Function<? super L,? extends T> lFunc)
public <T> Either<L,T> mapRight(java.util.function.Function<? super R,? extends T> rFunc)
public void apply(java.util.function.Consumer<? super L> lFunc, java.util.function.Consumer<? super R> rFunc)
Copyright © 2016. All rights reserved.