Uses of Interface
at.jku.ssw.fp.sect06_2.Monoid
-
Packages that use Monoid Package Description at.jku.ssw.fp.sect06_2 -
-
Uses of Monoid in at.jku.ssw.fp.sect06_2
Fields in at.jku.ssw.fp.sect06_2 declared as Monoid Modifier and Type Field Description static Monoid<Boolean>
Monoids. booleanAndMonoid
The monoid for Boolean values, the and operator andtrue
as identity value.static Monoid<Boolean>
Monoids. booleanOrMonoid
The monoid for Boolean values, the or operator andfalse
as identity value.static Monoid<Double>
Monoids. doubleMultMonoid
The monoid for double values, the times operator and1.0
as identity value.static Monoid<Double>
Monoids. doublePlusMonoid
The monoid for double values, the plus operator and0.0
as identity value.static Monoid<Integer>
Monoids. intPlusMonoid
The monoid for integer values, the plus operator and0
as identity value.static Monoid<Integer>
Monoids. intTimesMonoid
The monoid for integer values, the times operator and1
as identity value.static Monoid<String>
Monoids. stringMonoid
The monoid for string values, the concatenation operator and""
as identity value.Methods in at.jku.ssw.fp.sect06_2 that return Monoid Modifier and Type Method Description static <M> Monoid<M>
Monoids. implicitMonoid(M m)
Returns a default monoid based on the type of a value.static <A> Monoid<List<A>>
Monoids. listMonoid()
Creates a monoid object for list for a generic value setA
, the list concatenation operator and the empty list as identity value.(package private) static <K,V>
Monoid<Map<K,V>>Demo4_ReduceMap. mapMonoid(Monoid<V> vMonoid)
static <K,V>
Monoid<Map<K,V>>Monoids. mapMonoid(Monoid<V> vMonoid)
Creates a monoid for maps from a key to value where values are combined by the given monoid.static <M> Monoid<M>
Monoid. of(M idty, BinaryOperator<M> combiner)
Constructs a monoid from an identity value and an binary operator.static <E> Monoid<Optional<E>>
Monoids. optionalMonoid(Monoid<E> eMonoid)
Creates a monoid for optional values where two values of non-empty optionals are combined by the given monoid.static <A> Monoid<Set<A>>
Monoids. setMonoid()
Creates a monoid object for power sets for a generic value setA
, the union operator and the empty set as identity value.Methods in at.jku.ssw.fp.sect06_2 with parameters of type Monoid Modifier and Type Method Description (package private) static <K,V>
Monoid<Map<K,V>>Demo4_ReduceMap. mapMonoid(Monoid<V> vMonoid)
static <K,V>
Monoid<Map<K,V>>Monoids. mapMonoid(Monoid<V> vMonoid)
Creates a monoid for maps from a key to value where values are combined by the given monoid.static <E> Monoid<Optional<E>>
Monoids. optionalMonoid(Monoid<E> eMonoid)
Creates a monoid for optional values where two values of non-empty optionals are combined by the given monoid.default E
Reducible. reduce(Monoid<E> monoid)
Reduces the values based on the given monoid.<R> R
Reducible. reduceMap(Function<? super E,? extends R> mapper, Monoid<R> monoid)
First maps the elements and then reduces the mapped elements based on the given monoid.
-