Class Either.Right<L,R>
java.lang.Object
com.jnape.palatable.lambda.adt.Either<L,R>
com.jnape.palatable.lambda.adt.Either.Right<L,R>
- All Implemented Interfaces:
CoProduct2<L, R, Either<L,R>>, Applicative<R, Either<L, ?>>, Bifunctor<L, R, Either<?, ?>>, BoundedBifunctor<L, R, Object, Object, Either<?, ?>>, Functor<R, Either<L, ?>>, Monad<R, Either<L, ?>>, MonadError<L, R, Either<L, ?>>, MonadRec<R, Either<L, ?>>, Traversable<R, Either<L, ?>>
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class Either
biMap, biMapL, biMapR, catchError, discardL, discardR, diverge, filter, filter, flatMap, fmap, forfeit, fromMaybe, invert, lazyZip, left, merge, or, orThrow, peek, peek, pure, pureEither, recover, right, throwError, toMaybe, trampolineM, traverse, trying, trying, trying, trying, zipMethods inherited from interface CoProduct2
embed, project, projectA, projectB
-
Field Details
-
r
-
-
Constructor Details
-
Right
-
-
Method Details
-
match
Description copied from class:EitherGiven two mapping functions (one from anLto aV, one from anRto aV), unwrap the value stored in thisEither, apply the appropriate mapping function, and return the result.- Specified by:
matchin interfaceCoProduct2<L, R, Either<L,R>> - Specified by:
matchin classEither<L,R> - Type Parameters:
V- the result type- Parameters:
leftFn- the left value mapping functionrightFn- the right value mapping function- Returns:
- the result of applying the appropriate mapping function to the wrapped value
-
equals
-
hashCode
-
toString
-