All Methods Static Methods Instance Methods Abstract Methods Default Methods
| Modifier and Type |
Method and Description |
default <T,U> Either<T,U> |
bimap(Function1<L,T> leftMapper,
Function1<R,U> rightMapper) |
default Option<Either<L,R>> |
filter(Matcher1<R> matcher) |
default Either<L,R> |
filterOrElse(Matcher1<R> matcher,
Producer<Either<L,R>> orElse) |
default <T> Either<L,T> |
flatMap(Function1<R,? extends Higher2<Either.µ,L,T>> map) |
default <T> Either<T,R> |
flatMapLeft(Function1<L,? extends Higher2<Either.µ,T,R>> map) |
default <V> Either<L,V> |
flatten() |
default <T> T |
fold(Function1<L,T> leftMapper,
Function1<R,T> rightMapper) |
default R |
get() |
L |
getLeft() |
R |
getRight() |
boolean |
isLeft() |
boolean |
isRight() |
default Option<L> |
left() |
static <L,R> Either<L,R> |
left(L value) |
default <T> Either<L,T> |
map(Function1<R,T> map) |
default <T> Either<T,R> |
mapLeft(Function1<L,T> map) |
com.github.tonivade.purefun.type.EitherModule |
module() |
static <L> Monad<Higher1<Either.µ,L>> |
monad() |
static <L,R> Either<L,R> |
narrowK(Higher1<Higher1<Either.µ,L>,R> hkt) |
static <L,R> Either<L,R> |
narrowK(Higher2<Either.µ,L,R> hkt) |
default R |
orElse(Producer<R> orElse) |
default R |
orElse(R value) |
default Option<R> |
right() |
static <L,R> Either<L,R> |
right(R value) |
default Sequence<R> |
sequence() |
default java.util.stream.Stream<R> |
stream() |
default Either<R,L> |
swap() |
default Option<R> |
toOption() |
default Validation<L,R> |
toValidation() |