Class RecursiveResult.Terminate<A,B>
- java.lang.Object
-
- com.jnape.palatable.lambda.functions.recursion.RecursiveResult<A,B>
-
- com.jnape.palatable.lambda.functions.recursion.RecursiveResult.Terminate<A,B>
-
- All Implemented Interfaces:
CoProduct2<A,B,RecursiveResult<A,B>>,Applicative<B,RecursiveResult<A,?>>,Bifunctor<A,B,RecursiveResult<?,?>>,BoundedBifunctor<A,B,java.lang.Object,java.lang.Object,RecursiveResult<?,?>>,Functor<B,RecursiveResult<A,?>>,Monad<B,RecursiveResult<A,?>>,MonadRec<B,RecursiveResult<A,?>>,Traversable<B,RecursiveResult<A,?>>
- Enclosing class:
- RecursiveResult<A,B>
static final class RecursiveResult.Terminate<A,B> extends RecursiveResult<A,B>
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.jnape.palatable.lambda.functions.recursion.RecursiveResult
RecursiveResult.Recurse<A,B>, RecursiveResult.Terminate<A,B>
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object other)inthashCode()<R> Rmatch(Fn1<? super A,? extends R> aFn, Fn1<? super B,? extends R> bFn)Type-safe convergence requiring a match against all potential types.java.lang.StringtoString()-
Methods inherited from class com.jnape.palatable.lambda.functions.recursion.RecursiveResult
biMap, biMapL, biMapR, discardL, discardR, flatMap, fmap, invert, pure, pureRecursiveResult, recurse, terminate, trampolineM, traverse, zip
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
-
-
-
Field Detail
-
b
final B b
-
-
Constructor Detail
-
Terminate
private Terminate(B b)
-
-
Method Detail
-
match
public <R> R match(Fn1<? super A,? extends R> aFn, Fn1<? super B,? extends R> bFn)
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
public boolean equals(java.lang.Object other)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-