Package com.jnape.palatable.lambda.adt
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 com.jnape.palatable.lambda.adt.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, zip
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.jnape.palatable.lambda.adt.coproduct.CoProduct2
embed, project, projectA, projectB
-
Field Details
-
r
-
-
Constructor Details
-
Right
-
-
Method Details
-
match
Description copied from class:Either
Given two mapping functions (one from anL
to aV
, one from anR
to aV
), unwrap the value stored in thisEither
, apply the appropriate mapping function, and return the result.- Specified by:
match
in interfaceCoProduct2<L,
R, Either<L, R>> - Specified by:
match
in 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
public int hashCode() -
toString
-