Interface BiMonoidFactory<A,B,C>
-
- All Superinterfaces:
Applicative<Fn1<B,Fn1<C,Fn1<C,C>>>,Fn1<A,?>>,BiSemigroupFactory<A,B,C>,Cartesian<A,Fn1<B,Fn1<C,Fn1<C,C>>>,Fn1<?,?>>,Cocartesian<A,Fn1<B,Fn1<C,Fn1<C,C>>>,Fn1<?,?>>,Contravariant<A,Profunctor<?,Fn1<B,Fn1<C,Fn1<C,C>>>,Fn1<?,?>>>,Fn1<A,Fn1<B,Fn1<C,Fn1<C,C>>>>,Fn2<A,B,Fn1<C,Fn1<C,C>>>,Fn3<A,B,C,Fn1<C,C>>,Fn4<A,B,C,C,C>,Functor<Fn1<B,Fn1<C,Fn1<C,C>>>,Fn1<A,?>>,Monad<Fn1<B,Fn1<C,Fn1<C,C>>>,Fn1<A,?>>,MonadReader<A,Fn1<B,Fn1<C,Fn1<C,C>>>,Fn1<A,?>>,MonadRec<Fn1<B,Fn1<C,Fn1<C,C>>>,Fn1<A,?>>,MonadWriter<A,Fn1<B,Fn1<C,Fn1<C,C>>>,Fn1<A,?>>,Profunctor<A,Fn1<B,Fn1<C,Fn1<C,C>>>,Fn1<?,?>>
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@FunctionalInterface public interface BiMonoidFactory<A,B,C> extends BiSemigroupFactory<A,B,C>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default MonoidFactory<B,C>apply(A a)Partially apply this function by taking its first argument.default Monoid<C>apply(A a, B b)Partially apply this function by taking its first two arguments.default MonoidFactory<B,C>checkedApply(A a)Invoke this function with the given argument, potentially throwing anyThrowable.Monoid<C>checkedApply(A a, B b)default BiMonoidFactory<B,A,C>flip()Flip the order of the first two arguments.default MonoidFactory<? super Product2<? extends A,? extends B>,C>uncurry()-
Methods inherited from interface com.jnape.palatable.lambda.functions.specialized.BiSemigroupFactory
checkedApply
-
Methods inherited from interface com.jnape.palatable.lambda.functions.Fn1
andThen, carry, cartesian, censor, choose, cocartesian, diMap, diMapR, discardL, flatMap, fmap, lazyZip, listens, local, pure, self, thunk, toFunction, trampolineM, zip, zip
-
Methods inherited from interface com.jnape.palatable.lambda.functions.Fn2
toBiFunction
-
-
-
-
Method Detail
-
checkedApply
Monoid<C> checkedApply(A a, B b) throws java.lang.Throwable
Description copied from interface:Fn3- Specified by:
checkedApplyin interfaceBiSemigroupFactory<A,B,C>- Specified by:
checkedApplyin interfaceFn2<A,B,C>- Specified by:
checkedApplyin interfaceFn3<A,B,C,Fn1<C,C>>- Throws:
java.lang.Throwable
-
checkedApply
default MonoidFactory<B,C> checkedApply(A a) throws java.lang.Throwable
Description copied from interface:Fn2Invoke this function with the given argument, potentially throwing anyThrowable.- Specified by:
checkedApplyin interfaceFn1<A,B>- Specified by:
checkedApplyin interfaceFn2<A,B,C>- Parameters:
a- the argument- Returns:
- the result of the function application
- Throws:
java.lang.Throwable- anything possibly thrown by the function
-
apply
default Monoid<C> apply(A a, B b)
Description copied from interface:Fn4Partially apply this function by taking its first two arguments.
-
apply
default MonoidFactory<B,C> apply(A a)
Description copied from interface:Fn4Partially apply this function by taking its first argument.- Specified by:
applyin interfaceBiSemigroupFactory<A,B,C>- Specified by:
applyin interfaceFn1<A,B>- Specified by:
applyin interfaceFn2<A,B,C>- Specified by:
applyin interfaceFn3<A,B,C,Fn1<C,C>>- Specified by:
applyin interfaceFn4<A,B,C,C,C>- Parameters:
a- the first argument- Returns:
- an
Fn3<B, C, D, E>
-
flip
default BiMonoidFactory<B,A,C> flip()
Description copied from interface:Fn4Flip the order of the first two arguments.
-
-