Uses of Interface
io.atlassian.fugue.Semigroup
-
Packages that use Semigroup Package Description io.atlassian.fugue io.atlassian.fugue.law -
-
Uses of Semigroup in io.atlassian.fugue
Subinterfaces of Semigroup in io.atlassian.fugue Modifier and Type Interface Description interfaceMonoid<A>A Monoid is an algebraic structure consisting of an associative binary operation across the values of a given type (a monoid is aSemigroup) and an identity element for this operation.Fields in io.atlassian.fugue declared as Semigroup Modifier and Type Field Description static Semigroup<java.math.BigDecimal>Semigroups. bigDecimalMaximumA semigroup that yields the maximum of big decimals.static Semigroup<java.math.BigDecimal>Semigroups. bigDecimalMinimumA semigroup that yields the minimum of big decimals.static Semigroup<java.math.BigInteger>Semigroups. bigintMaximumA semigroup that yields the maximum of big integers.static Semigroup<java.math.BigInteger>Semigroups. bigintMinimumA semigroup that yields the minimum of big integers.static Semigroup<java.lang.Integer>Semigroups. intMaximumA semigroup that yields the maximum of integers.static Semigroup<java.lang.Integer>Semigroups. intMinimumA semigroup that yields the minimum of integers.static Semigroup<java.lang.Long>Semigroups. longMaximumA semigroup that yields the maximum of longs.static Semigroup<java.lang.Long>Semigroups. longMinimumA semigroup that yields the minimum of longs.Methods in io.atlassian.fugue that return Semigroup Modifier and Type Method Description static <A,B>
Semigroup<Pair<A,B>>Semigroup. compose(Semigroup<A> sa, Semigroup<B> sb)Composes a semigroup with another.static <A> Semigroup<A>Semigroup. dual(Semigroup<A> semigroup)Return the dual Semigroup of a semigroupstatic <L,R>
Semigroup<Either<L,R>>Semigroups. either(Semigroup<L> lS, Semigroup<R> rS)Sums up values inside either, if both are left or right.static <A> Semigroup<A>Semigroups. first()Return the first value, ignore the secondstatic <A,B>
Semigroup<java.util.function.Function<A,B>>Semigroups. function(Semigroup<B> sb)A semigroup for functions.static <A> Semigroup<A>Semigroups. last()Return the last value, ignore the firststatic <A extends java.lang.Comparable<A>>
Semigroup<A>Semigroups. max()A semigroup that yields the maximum of comparable values.static <A> Semigroup<A>Semigroups. max(java.util.Comparator<A> comparator)A semigroup that yields the maximum of by a comparator.static <A extends java.lang.Comparable<A>>
Semigroup<A>Semigroups. min()A semigroup that yields the minimum of comparable values.static <A> Semigroup<A>Semigroups. min(java.util.Comparator<A> comparator)A semigroup that yields the minimum of by a comparator.Methods in io.atlassian.fugue with parameters of type Semigroup Modifier and Type Method Description static <A,B>
Semigroup<Pair<A,B>>Semigroup. compose(Semigroup<A> sa, Semigroup<B> sb)Composes a semigroup with another.static <A> Semigroup<A>Semigroup. dual(Semigroup<A> semigroup)Return the dual Semigroup of a semigroupstatic <L,R>
Monoid<Either<L,R>>Monoids. either(Semigroup<L> lS, Monoid<R> rM)A monoid Sums up values inside eitherSemigroups.either(io.atlassian.fugue.Semigroup<L>, io.atlassian.fugue.Semigroup<R>).static <L,R>
Semigroup<Either<L,R>>Semigroups. either(Semigroup<L> lS, Semigroup<R> rS)Sums up values inside either, if both are left or right.static <A,B>
Semigroup<java.util.function.Function<A,B>>Semigroups. function(Semigroup<B> sb)A semigroup for functions.static <A> Monoid<Option<A>>Monoids. option(Semigroup<A> semigroup)A monoid for options that combine inner value with a semigroup. -
Uses of Semigroup in io.atlassian.fugue.law
Fields in io.atlassian.fugue.law declared as Semigroup Modifier and Type Field Description private Semigroup<A>SemigroupLaws. semigroupConstructors in io.atlassian.fugue.law with parameters of type Semigroup Constructor Description SemigroupLaws(Semigroup<A> semigroup)Build a law instance to check semigroup properties
-