Class Choice5._D<A,B,C,D,E>
- java.lang.Object
-
- com.jnape.palatable.lambda.adt.choice.Choice5<A,B,C,D,E>
-
- com.jnape.palatable.lambda.adt.choice.Choice5._D<A,B,C,D,E>
-
- All Implemented Interfaces:
CoProduct5<A,B,C,D,E,Choice5<A,B,C,D,E>>,Applicative<E,Choice5<A,B,C,D,?>>,Bifunctor<D,E,Choice5<A,B,C,?,?>>,BoundedBifunctor<D,E,java.lang.Object,java.lang.Object,Choice5<A,B,C,?,?>>,Functor<E,Choice5<A,B,C,D,?>>,Monad<E,Choice5<A,B,C,D,?>>,MonadRec<E,Choice5<A,B,C,D,?>>,Traversable<E,Choice5<A,B,C,D,?>>
private static final class Choice5._D<A,B,C,D,E> extends Choice5<A,B,C,D,E>
-
-
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, Fn1<? super D,? extends R> dFn, Fn1<? super E,? extends R> eFn)Type-safe convergence requiring a match against all potential types.java.lang.StringtoString()-
Methods inherited from class com.jnape.palatable.lambda.adt.choice.Choice5
a, b, biMap, biMapL, biMapR, c, converge, d, discardL, discardR, diverge, e, flatMap, fmap, lazyZip, project, pure, pureChoice, trampolineM, traverse, zip
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
-
-
-
Field Detail
-
d
private final D d
-
-
Constructor Detail
-
_D
private _D(D d)
-
-
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, Fn1<? super D,? extends R> dFn, Fn1<? super E,? extends R> eFn)
Description copied from interface:CoProduct5Type-safe convergence requiring a match against all potential types.- Type Parameters:
R- result type- Parameters:
aFn- morphismA -> RbFn- morphismB -> RcFn- morphismC -> RdFn- morphismD -> ReFn- morphismE -> R- Returns:
- the result of applying the appropriate morphism from whichever type is represented by this coproduct to R
- 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
-
-