Uses of Class
fj.Monoid
Packages that use Monoid
Package
Description
Types that set the premise for the existence of Functional Java.
Parallelization strategies.
Common algebraic data types.
Provides 2-3 finger trees, a functional representation of persistent sequences supporting access to the ends in
amortized O(1) time.
Optic data types adapted from the Scala Monocle library
and inspired by the
Haskell Lens library.
-
Uses of Monoid in fj
Modifier and TypeFieldDescriptionstatic final Monoid
<BigDecimal> Monoid.bigdecimalAdditionMonoid
A monoid that adds big decimals.static final Monoid
<BigDecimal> A monoid that multiplies big decimals.static final Monoid
<BigInteger> Monoid.bigintAdditionMonoid
A monoid that adds big integers.static final Monoid
<BigInteger> Monoid.bigintMultiplicationMonoid
A monoid that multiplies big integers.Monoid.conjunctionMonoid
A monoid that ANDs booleans.Monoid.disjunctionMonoid
A monoid that ORs booleans.Monoid.exclusiveDisjunctionMonoid
A monoid that XORs booleans.Monoid.intAdditionMonoid
A monoid that adds integers.Monoid.intMaxMonoid
A monoid for the maximum of two integers.Monoid.intMinMonoid
A monoid for the minimum of two integers.Monoid.intMultiplicationMonoid
A monoid that multiplies integers.Monoid.longAdditionMonoid
A monoid that adds longs.Monoid.longMultiplicationMonoid
A monoid that multiplies longs.Monoid.naturalAdditionMonoid
A monoid that adds natural numbers.Monoid.naturalMultiplicationMonoid
A monoid that multiplies natural numbers.static final Monoid
<StringBuffer> Monoid.stringBufferMonoid
A monoid that appends string buffers.static final Monoid
<StringBuilder> Monoid.stringBuilderMonoid
A monoid that appends string builders.Monoid.stringMonoid
A monoid that appends strings.Monoid.unitMonoid
A monoid for the Unit value.Modifier and TypeMethodDescriptionMonoid.arrayMonoid()
A monoid for arrays.Composes this monoid with another.<B,
C> Monoid <C> Monoid.dual()
Swaps the arguments when summing.Monoid.firstOptionMonoid()
A monoid for options that take the first available value.Monoid.functionMonoid
(Monoid<B> mb) A monoid for functions.A monoid for IO values.Monoid.lastOptionMonoid()
A monoid for options that take the last available value.Semigroup.lift()
Lifts the semigroup to obtain a trivial monoid.Monoid.listMonoid()
A monoid for lists.static <A> Monoid
<A> Constructs a monoid from the given sum function and zero value, which must follow the monoidal laws.static <A> Monoid
<A> Constructs a monoid from the given sum function and zero value, which must follow the monoidal laws.Constructs a monoid from this semigroup and a zero value, which must follow the monoidal laws.static <A> Monoid
<A> Monoid.monoidDef
(Monoid.AltDefinition<A> def) Constructs a monoid from the given definition, which must follow the monoidal laws.static <A> Monoid
<A> Monoid.monoidDef
(Monoid.Definition<A> def) Constructs a monoid from the given definition, which must follow the monoidal laws.static <A> Monoid
<A> Monoid.monoidDef
(Semigroup.AltDefinition<A> s, A zero) Constructs a monoid from the given semigroup definition and zero value, which must follow the monoidal laws.static <A> Monoid
<A> Monoid.monoidDef
(Semigroup.Definition<A> s, A zero) Constructs a monoid from the given semigroup definition and zero value, which must follow the monoidal laws.Monoid.optionMonoid
(Semigroup<A> aSemigroup) Lift aSemigroup<A>
for A to aMonoid<Option<A>>
, using Option.none() as zero.Monoid.setIntersectionMonoid
(Bounded<A> bounded, Enumerator<A> enumerator) A intersection monoid for sets.A union monoid for sets.Monoid.streamMonoid()
A monoid for streams.<B> Monoid
<B> Maps the given functions across this monoid as an invariant functor.Modifier and TypeMethodDescriptionComposes this monoid with another.<B,
C> Monoid <C> F.foldMapTree
(Monoid<B> m) Returns a function that maps this function over a tree and folds it with the given monoid.Monoid.functionMonoid
(Monoid<B> mb) A monoid for functions.A monoid for IO values. -
Uses of Monoid in fj.control.parallel
Methods in fj.control.parallel with parameters of type MonoidModifier and TypeMethodDescription<A,
B> Promise <B> ParModule.parFoldMap
(Stream<A> as, F<A, B> map, Monoid<B> reduce) Maps with the given function across the given stream in parallel, while folding with the given monoid.<A,
B> Promise <B> ParModule.parFoldMap
(Stream<A> as, F<A, B> map, Monoid<B> reduce, F<Stream<A>, P2<Stream<A>, Stream<A>>> chunking) Maps with the given function across chunks of the given stream in parallel, while folding with the given monoid.<A,
B> Promise <B> ParModule.parFoldMap
(Iterable<A> as, F<A, B> map, Monoid<B> reduce) Maps with the given function across the given iterable in parallel, while folding with the given monoid.<A,
B> Promise <B> ParModule.parFoldMap
(Iterable<A> as, F<A, B> map, Monoid<B> reduce, F<Iterable<A>, P2<Iterable<A>, Iterable<A>>> chunking) Maps with the given function across chunks of the given Iterable in parallel, while folding with the given monoid. -
Uses of Monoid in fj.data
Modifier and TypeMethodDescriptionstatic <K,
A> PriorityQueue <K, A> Creates an empty priority queue.final <B> B
Folds this Set using the given monoid.<B> B
Folds this tree using the given monoid.Provides a function that folds a tree with the given monoid.final <B> B
Set.foldMapRight
(F<A, B> f, Monoid<B> m) Folds this Set from the right using the given monoid.final <B,
C> TreeMap <B, C> Groups the elements of this list by a given keyFunction into aTreeMap
and transforms the matching elements with the given valueFunction.static <W,
A> Writer <W, A> static <W,
A> Writer <W, A> -
Uses of Monoid in fj.data.fingertrees
Fields in fj.data.fingertrees declared as MonoidMethods in fj.data.fingertrees that return MonoidMethods in fj.data.fingertrees with parameters of type MonoidModifier and TypeMethodDescriptionstatic <V,
A> FingerTree <V, A> Creates an empty finger tree with elements of type A and node annotations of type V.static <V,
A> Measured <V, A> Constructs a Measured instance for the element type, given a monoid and a measuring function.static <V,
A> Measured <V, A> Constructors in fj.data.fingertrees with parameters of type Monoid -
Uses of Monoid in fj.data.optic
Methods in fj.data.optic with parameters of type Monoid