Class Choice3._C<A,B,C>
- java.lang.Object
-
- com.jnape.palatable.lambda.adt.choice.Choice3<A,B,C>
-
- com.jnape.palatable.lambda.adt.choice.Choice3._C<A,B,C>
-
- All Implemented Interfaces:
CoProduct3<A,B,C,Choice3<A,B,C>>,Applicative<C,Choice3<A,B,?>>,Bifunctor<B,C,Choice3<A,?,?>>,BoundedBifunctor<B,C,java.lang.Object,java.lang.Object,Choice3<A,?,?>>,Functor<C,Choice3<A,B,?>>,Monad<C,Choice3<A,B,?>>,MonadRec<C,Choice3<A,B,?>>,Traversable<C,Choice3<A,B,?>>
private static final class Choice3._C<A,B,C> extends Choice3<A,B,C>
-
-
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, Fn1<? super C,? extends R> cFn)Type-safe convergence requiring a match against all potential types.java.lang.StringtoString()-
Methods inherited from class com.jnape.palatable.lambda.adt.choice.Choice3
a, b, biMap, biMapL, biMapR, c, converge, discardL, discardR, diverge, flatMap, fmap, lazyZip, project, pure, pureChoice, trampolineM, traverse, 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.CoProduct3
embed, projectA, projectB, projectC
-
-
-
-
Field Detail
-
c
private final C c
-
-
Constructor Detail
-
_C
private _C(C c)
-
-
Method Detail
-
match
public <R> R match(Fn1<? super A,? extends R> aFn, Fn1<? super B,? extends R> bFn, Fn1<? super C,? extends R> cFn)
Description copied from interface:CoProduct3Type-safe convergence requiring a match against all potential types.- Type Parameters:
R- result type- Parameters:
aFn- morphismA -> RbFn- morphismB -> RcFn- morphismC -> R- Returns:
- the result of applying the appropriate morphism to this coproduct's unwrapped value
- See Also:
CoProduct2.match(Fn1, Fn1)
-
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
-
-