Class AddAll<A,C extends java.util.Collection<A>>
- java.lang.Object
-
- com.jnape.palatable.lambda.monoid.builtin.AddAll<A,C>
-
- All Implemented Interfaces:
Fn1<Fn0<C>,Fn1<C,Fn1<C,C>>>,Fn2<Fn0<C>,C,Fn1<C,C>>,Fn3<Fn0<C>,C,C,C>,MonoidFactory<Fn0<C>,C>,SemigroupFactory<Fn0<C>,C>,Applicative<Fn1<C,Fn1<C,C>>,Fn1<Fn0<C>,?>>,Cartesian<Fn0<C>,Fn1<C,Fn1<C,C>>,Fn1<?,?>>,Cocartesian<Fn0<C>,Fn1<C,Fn1<C,C>>,Fn1<?,?>>,Contravariant<Fn0<C>,Profunctor<?,Fn1<C,Fn1<C,C>>,Fn1<?,?>>>,Functor<Fn1<C,Fn1<C,C>>,Fn1<Fn0<C>,?>>,Profunctor<Fn0<C>,Fn1<C,Fn1<C,C>>,Fn1<?,?>>,Monad<Fn1<C,Fn1<C,C>>,Fn1<Fn0<C>,?>>,MonadReader<Fn0<C>,Fn1<C,Fn1<C,C>>,Fn1<Fn0<C>,?>>,MonadRec<Fn1<C,Fn1<C,C>>,Fn1<Fn0<C>,?>>,MonadWriter<Fn0<C>,Fn1<C,Fn1<C,C>>,Fn1<Fn0<C>,?>>
public final class AddAll<A,C extends java.util.Collection<A>> extends java.lang.Object implements MonoidFactory<Fn0<C>,C>
TheMonoidinstance formed under mutative concatenation for an arbitraryCollection. The collection subtype (C) must supportCollection.addAll(Collection).Note that the result is a new collection, and the inputs to this monoid are left unmodified.
- See Also:
Monoid
-
-
Constructor Summary
Constructors Modifier Constructor Description privateAddAll()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static <A,C extends java.util.Collection<A>>
AddAll<A,C>addAll()static <A,C extends java.util.Collection<A>>
Monoid<C>addAll(Fn0<C> collectionFn0)static <A,C extends java.util.Collection<A>>
Fn1<C,C>addAll(Fn0<C> collectionFn0, C xs)static <A,C extends java.util.Collection<A>>
CaddAll(Fn0<C> collectionFn0, C xs, C ys)Monoid<C>checkedApply(Fn0<C> cFn0)Invoke this function with the given argument, potentially throwing anyThrowable.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
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
-
Methods inherited from interface com.jnape.palatable.lambda.functions.Fn3
apply, checkedApply, compose, contraMap, diMapL, discardR, flip, uncurry, widen
-
Methods inherited from interface com.jnape.palatable.lambda.functions.specialized.MonoidFactory
apply, apply
-
Methods inherited from interface com.jnape.palatable.lambda.functions.specialized.SemigroupFactory
checkedApply
-
-
-
-
Field Detail
-
INSTANCE
private static final AddAll<?,?> INSTANCE
-
-
Method Detail
-
checkedApply
public Monoid<C> checkedApply(Fn0<C> cFn0)
Description copied from interface:Fn2Invoke this function with the given argument, potentially throwing anyThrowable.- Specified by:
checkedApplyin interfaceFn1<A,C extends java.util.Collection<A>>- Specified by:
checkedApplyin interfaceFn2<Fn0<C extends java.util.Collection<A>>,C extends java.util.Collection<A>,Fn1<C extends java.util.Collection<A>,C extends java.util.Collection<A>>>- Specified by:
checkedApplyin interfaceMonoidFactory<A,C extends java.util.Collection<A>>- Specified by:
checkedApplyin interfaceSemigroupFactory<A,C extends java.util.Collection<A>>- Parameters:
cFn0- the argument- Returns:
- the result of the function application
-
addAll
public static <A,C extends java.util.Collection<A>> AddAll<A,C> addAll()
-
addAll
public static <A,C extends java.util.Collection<A>> Fn1<C,C> addAll(Fn0<C> collectionFn0, C xs)
-
addAll
public static <A,C extends java.util.Collection<A>> C addAll(Fn0<C> collectionFn0, C xs, C ys)
-
-