public abstract class Monoids extends Object
Modifier and Type | Method and Description |
---|---|
static <M> BiFunction<M,M,M> |
combine(Monoid<M> monoid) |
static GenMonoid<Object,String> |
concat(String separator) |
static Monoid<Boolean> |
conjunctive() |
static <A> Monoid<A> |
discrete() |
static Monoid<Boolean> |
disjunctive() |
static <A> GenMonoid<A,List<A>> |
free() |
static <A,M> GenMonoid<A,M> |
generate(M neutral,
Function<? super A,? extends M> unit,
BiFunction<? super M,? super M,? extends M> combine) |
static Monoid<Integer> |
intBitwiseAnd() |
static Monoid<Integer> |
intBitwiseOr() |
static Monoid<Integer> |
intBitwiseXor() |
static Monoid<Integer> |
intProduct() |
static Monoid<Integer> |
intSum() |
static <A> GenMonoid<A,Set<? extends A>> |
setUnion() |
static <A,M> Function<A,M> |
unit(GenMonoid<? super A,? extends M> monoid) |
public static <A,M> GenMonoid<A,M> generate(M neutral, Function<? super A,? extends M> unit, BiFunction<? super M,? super M,? extends M> combine)
public static <M> BiFunction<M,M,M> combine(Monoid<M> monoid)
public static <A> Monoid<A> discrete()
see also the complete user documentation .