Class Monoids
java.lang.Object
io.atlassian.fugue.Monoids
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Monoid<BigInteger> A monoid that adds big integers.static final Monoid<BigInteger> A monoid that multiplies big integers.A monoid that ANDs booleans.A monoid that ORs booleans.A monoid that XORs booleans.A monoid that adds integers.A monoid that multiplies integers.A monoid that adds longs.A monoid that multiplies longs.A monoid that appends strings.A monoid for the Unit value. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionA monoid Sums up values inside eitherSemigroups.either(Semigroup, Semigroup).A monoid for options (that take the first available value).A monoid for functions.iterable()A monoid for iterables.A monoid for options that take the last available value.list()A monoid for lists.A monoid for options that combine inner value with a semigroup.
-
Field Details
-
intAddition
-
intMultiplication
-
bigintAddition
A monoid that adds big integers. -
bigintMultiplication
A monoid that multiplies big integers. -
longAddition
-
longMultiplication
-
disjunction
-
exclusiveDisjunction
-
conjunction
-
string
-
unit
-
-
Constructor Details
-
Monoids
private Monoids()
-
-
Method Details
-
function
-
list
-
iterable
-
firstOption
-
lastOption
-
option
-
either
A monoid Sums up values inside eitherSemigroups.either(Semigroup, Semigroup). Monoid of right values provide the identity element of the resulting monoid.- Type Parameters:
L- desired left typeR- desired right type- Parameters:
lS- semigroup for left valuesrM- monoid for right values.- Returns:
- A monoid Sums up values inside either.
-