public final class AddAll<A,C extends Collection<A>> extends Object implements MonoidFactory<Fn0<C>,C>
Monoid
instance formed under mutative concatenation for an arbitrary Collection
. The collection
subtype (C
) must support Collection.addAll(Collection)
.
Note that the result is a new collection, and the inputs to this monoid are left unmodified.
Monoid
Modifier and Type | Method and Description |
---|---|
static <A,C extends Collection<A>> |
addAll() |
static <A,C extends Collection<A>> |
addAll(Fn0<C> collectionFn0) |
static <A,C extends Collection<A>> |
addAll(Fn0<C> collectionFn0,
C xs) |
static <A,C extends Collection<A>> |
addAll(Fn0<C> collectionFn0,
C xs,
C ys) |
Monoid<C> |
checkedApply(Fn0<C> cFn0)
Invoke this function with the given argument, potentially throwing any
Throwable . |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
apply, apply
checkedApply
apply, checkedApply, compose, contraMap, diMapL, discardR, flip, fn3, fn3, fn3, uncurry, widen
curried, curry, fn2, fromBiFunction, toBiFunction
public Monoid<C> checkedApply(Fn0<C> cFn0)
Fn2
Throwable
.checkedApply
in interface Fn1<Fn0<C extends Collection<A>>,Fn1<C extends Collection<A>,Fn1<C extends Collection<A>,C extends Collection<A>>>>
checkedApply
in interface Fn2<Fn0<C extends Collection<A>>,C extends Collection<A>,Fn1<C extends Collection<A>,C extends Collection<A>>>
checkedApply
in interface MonoidFactory<Fn0<C extends Collection<A>>,C extends Collection<A>>
checkedApply
in interface SemigroupFactory<Fn0<C extends Collection<A>>,C extends Collection<A>>
cFn0
- the argumentpublic static <A,C extends Collection<A>> AddAll<A,C> addAll()
public static <A,C extends Collection<A>> Monoid<C> addAll(Fn0<C> collectionFn0)
public static <A,C extends Collection<A>> Fn1<C,C> addAll(Fn0<C> collectionFn0, C xs)
public static <A,C extends Collection<A>> C addAll(Fn0<C> collectionFn0, C xs, C ys)