@Value.Immutable public abstract class Either<L,R> extends Object
| Constructor and Description |
|---|
Either() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
check() |
boolean |
isLeft() |
L |
left() |
static <L,R> Either<L,R> |
left(L left) |
protected abstract Optional<L> |
optLeft() |
protected abstract Optional<R> |
optRight() |
R |
right() |
static <L,R> Either<L,R> |
right(R right) |
Copyright © 2017. All rights reserved.