Class Maybe.Just<A>
java.lang.Object
com.jnape.palatable.lambda.adt.Maybe<A>
com.jnape.palatable.lambda.adt.Maybe.Just<A>
- All Implemented Interfaces:
CoProduct2<Unit,A, Maybe<A>>, Applicative<A, Maybe<?>>, Functor<A, Maybe<?>>, Monad<A, Maybe<?>>, MonadError<Unit, A, Maybe<?>>, MonadRec<A, Maybe<?>>, Traversable<A, Maybe<?>>
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class Maybe
catchError, discardL, discardR, diverge, filter, flatMap, fmap, fromEither, fromOptional, invert, just, lazyZip, maybe, nothing, orElse, orElseGet, orElseThrow, peek, project, pure, pureMaybe, throwError, toEither, toOptional, trampolineM, traverse, zipMethods inherited from interface CoProduct2
embed, projectA, projectB
-
Field Details
-
a
-
-
Constructor Details
-
Just
-
-
Method Details
-
match
Description copied from interface:CoProduct2Type-safe convergence requiring a match against all potential types.- Type Parameters:
R- result type- Parameters:
aFn- morphismA -> RbFn- morphismB -> R- Returns:
- the result of applying the appropriate morphism to this coproduct's unwrapped value
-
equals
-
hashCode
-
toString
-