Class Choice6._D<A,B,C,D,E,F>
- java.lang.Object
-
- com.jnape.palatable.lambda.adt.choice.Choice6<A,B,C,D,E,F>
-
- com.jnape.palatable.lambda.adt.choice.Choice6._D<A,B,C,D,E,F>
-
- All Implemented Interfaces:
CoProduct6<A,B,C,D,E,F,Choice6<A,B,C,D,E,F>>
,Applicative<F,Choice6<A,B,C,D,E,?>>
,Bifunctor<E,F,Choice6<A,B,C,D,?,?>>
,BoundedBifunctor<E,F,java.lang.Object,java.lang.Object,Choice6<A,B,C,D,?,?>>
,Functor<F,Choice6<A,B,C,D,E,?>>
,Monad<F,Choice6<A,B,C,D,E,?>>
,MonadRec<F,Choice6<A,B,C,D,E,?>>
,Traversable<F,Choice6<A,B,C,D,E,?>>
private static final class Choice6._D<A,B,C,D,E,F> extends Choice6<A,B,C,D,E,F>
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object other)
int
hashCode()
<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, Fn1<? super F,? extends R> fFn)
Type-safe convergence requiring a match against all potential types.java.lang.String
toString()
-
Methods inherited from class com.jnape.palatable.lambda.adt.choice.Choice6
a, b, biMap, biMapL, biMapR, c, converge, d, discardL, discardR, diverge, e, f, 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, Fn1<? super F,? extends R> fFn)
Description copied from interface:CoProduct6
Type-safe convergence requiring a match against all potential types.- Type Parameters:
R
- result type- Parameters:
aFn
- morphismA -> R
bFn
- morphismB -> R
cFn
- morphismC -> R
dFn
- morphismD -> R
eFn
- morphismE -> R
fFn
- morphismF -> 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:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-