Class Either.Right<L,R>
java.lang.Object
io.github.resilience4j.core.functions.Either.Right<L,R>
- Type Parameters:
L- left component typeR- right component type
- All Implemented Interfaces:
Either<L,,R> Serializable
The
Right version of an Either.- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.github.resilience4j.core.functions.Either
Either.Left<L,R>, Either.Right<L, R> -
Method Summary
-
Method Details
-
get
Description copied from interface:EitherGets the right value if this is aRightor throws if this is aLeft. -
getLeft
Description copied from interface:EitherReturns the left value. -
isLeft
public boolean isLeft()Description copied from interface:EitherReturns whether this Either is a Left. -
isRight
public boolean isRight()Description copied from interface:EitherReturns whether this Either is a Right.
-