Interface SemigroupFactory<A,B>
-
- All Superinterfaces:
Applicative<Fn1<B,Fn1<B,B>>,Fn1<A,?>>
,Cartesian<A,Fn1<B,Fn1<B,B>>,Fn1<?,?>>
,Cocartesian<A,Fn1<B,Fn1<B,B>>,Fn1<?,?>>
,Contravariant<A,Profunctor<?,Fn1<B,Fn1<B,B>>,Fn1<?,?>>>
,Fn1<A,Fn1<B,Fn1<B,B>>>
,Fn2<A,B,Fn1<B,B>>
,Fn3<A,B,B,B>
,Functor<Fn1<B,Fn1<B,B>>,Fn1<A,?>>
,Monad<Fn1<B,Fn1<B,B>>,Fn1<A,?>>
,MonadReader<A,Fn1<B,Fn1<B,B>>,Fn1<A,?>>
,MonadRec<Fn1<B,Fn1<B,B>>,Fn1<A,?>>
,MonadWriter<A,Fn1<B,Fn1<B,B>>,Fn1<A,?>>
,Profunctor<A,Fn1<B,Fn1<B,B>>,Fn1<?,?>>
- All Known Subinterfaces:
MonoidFactory<A,B>
- All Known Implementing Classes:
Absent
,AddAll
,Compose
,Compose
,EndoK
,LeftAll
,LeftAll
,LeftAny
,LeftAny
,MaxBy
,MaxWith
,MinBy
,MinWith
,Present
,RightAll
,RightAll
,RightAny
,RightAny
,RunAll
,RunAll
- 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 SemigroupFactory<A,B> extends Fn3<A,B,B,B>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default Semigroup<B>
apply(A a)
Partially apply this function by taking its first argument.Semigroup<B>
checkedApply(A a)
Invoke this function with the given argument, potentially throwing anyThrowable
.default B
checkedApply(A a, B b, B c)
-
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
Semigroup<B> checkedApply(A a) throws java.lang.Throwable
Description copied from interface:Fn2
Invoke this function with the given argument, potentially throwing anyThrowable
.
-
apply
default Semigroup<B> apply(A a)
Description copied from interface:Fn3
Partially apply this function by taking its first argument.
-
-