Either.Left<L,R>, Either.Right<L,R>| Modifier and Type | Method and Description |
|---|---|
L |
getLeft() |
R |
getRight() |
boolean |
isLeft() |
boolean |
isRight() |
<ML,MR> Either<ML,MR> |
map(java.util.function.Function<L,ML> leftMapper,
java.util.function.Function<R,MR> rightMapper) |
Either<R,L> |
swap() |
java.lang.String |
toString() |
<T> T |
xmap(java.util.function.Function<L,T> leftMapper,
java.util.function.Function<R,T> rightMapper) |