All Methods Static Methods Instance Methods Abstract Methods Concrete Methods
| Modifier and Type |
Method and Description |
protected void |
check() |
boolean |
isLeft() |
L |
left() |
static <L,R> Either<L,R> |
left(L left) |
<T> T |
map(Function<L,T> leftTransformation,
Function<R,T> rightTransformation) |
<T> Either<T,R> |
mapLeft(Function<L,T> transformation) |
<T> Either<L,T> |
mapRight(Function<R,T> transformation) |
protected abstract Optional<L> |
optLeft() |
protected abstract Optional<R> |
optRight() |
R |
right() |
static <L,R> Either<L,R> |
right(R right) |