Class Either.Right<A,B>
java.lang.Object
com.github.nullterminated.trylambda.Either<A,B>
com.github.nullterminated.trylambda.Either.Right<A,B>
- All Implemented Interfaces:
Serializable
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class com.github.nullterminated.trylambda.Either
Either.Left<A,B>, Either.Right<A, B> -
Method Summary
Modifier and TypeMethodDescriptionbooleanflip()Flip an Either<A,B> to a Either<B,A>.getLeft()getRight()inthashCode()<X,Y> Either <X, Y> Map this Either<A,B> to a new Either<X,Y>.<T> TReduce an Either<A,B> to a single value type T.toString()voidPass the value of this either to a consumer.
-
Method Details
-
getLeft
-
getRight
-
hashCode
public int hashCode() -
equals
-
toString
-
use
Description copied from class:EitherPass the value of this either to a consumer. -
map
Description copied from class:EitherMap this Either<A,B> to a new Either<X,Y>. -
reduce
Description copied from class:EitherReduce an Either<A,B> to a single value type T. -
flip
Description copied from class:EitherFlip an Either<A,B> to a Either<B,A>.
-