public interface Either<L,R>
static class
Either.Left<L,R>
Either.Right<L,R>
default <U> Either<L,U>
flatMap(java.util.function.Function<? super R,? extends Either<L,? extends U>> mapper)
L
getLeft()
R
getRight()
boolean
isLeft()
isRight()
static <L,R> Either<L,R>
left(L left)
right(R right)
static <L,R> Either<L,R> left(L left)
static <L,R> Either<L,R> right(R right)
L getLeft()
R getRight()
boolean isLeft()
boolean isRight()
default <U> Either<L,U> flatMap(java.util.function.Function<? super R,? extends Either<L,? extends U>> mapper)
Copyright © 2023. All rights reserved.