Package org.reactfx.util
Interface Either<L,R>
- All Known Subinterfaces:
Try<T>
public interface Either<L,R>
-
Method Summary
Modifier and TypeMethodDescriptionasLeft()
asRight()
void
<L2,
R2> Either <L2, R2> flatMapLeft
(Function<? super L, Either<L2, R>> f) flatMapRight
(Function<? super R, Either<L, R2>> f) getLeft()
getRight()
void
void
boolean
isLeft()
boolean
isRight()
static <L,
R> Either <L, R> left
(L l) static <L,
R> Either <L, R> leftOrDefault
(Optional<L> l, R r) static <L,
R> Either <L, R> leftOrNull
(Optional<L> l) <L2,
R2> Either <L2, R2> static <L,
R> Either <L, R> right
(R r) static <L,
R> Either <L, R> rightOrDefault
(Optional<R> r, L l) static <L,
R> Either <L, R> rightOrNull
(Optional<R> r) <T> T