public abstract class Either<L,R> extends Object
| Constructor and Description |
|---|
Either() |
| Modifier and Type | Method and Description |
|---|---|
abstract boolean |
isLeft() |
abstract 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) |
abstract R |
right() |
static <L,R> Either<L,R> |
right(R right) |
Copyright © 2023. All rights reserved.