Package com.jnape.palatable.lambda.adt
Class Either.Left<L,R>
java.lang.Object
com.jnape.palatable.lambda.adt.Either<L,R>
com.jnape.palatable.lambda.adt.Either.Left<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, zipMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.jnape.palatable.lambda.adt.coproduct.CoProduct2
embed, project, projectA, projectB
-
Field Details
-
l
-
-
Constructor Details
-
Left
-
-
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
public int hashCode() -
toString
-