| Modifier and Type | Field and Description |
|---|---|
static Semigroup<BigDecimal> |
bigDecimalMaximum
A semigroup that yields the maximum of big decimals.
|
static Semigroup<BigDecimal> |
bigDecimalMinimum
A semigroup that yields the minimum of big decimals.
|
static Semigroup<BigInteger> |
bigintMaximum
A semigroup that yields the maximum of big integers.
|
static Semigroup<BigInteger> |
bigintMinimum
A semigroup that yields the minimum of big integers.
|
static Semigroup<Integer> |
intMaximum
A semigroup that yields the maximum of integers.
|
static Semigroup<Integer> |
intMinimum
A semigroup that yields the minimum of integers.
|
static Semigroup<Long> |
longMaximum
A semigroup that yields the maximum of longs.
|
static Semigroup<Long> |
longMinimum
A semigroup that yields the minimum of longs.
|
| Modifier and Type | Method and Description |
|---|---|
static <L,R> Semigroup<Either<L,R>> |
either(Semigroup<L> lS,
Semigroup<R> rS)
Sums up values inside either, if both are left or right.
|
static <A> Semigroup<A> |
first()
Return the first value, ignore the second
|
static <A,B> Semigroup<Function<A,B>> |
function(Semigroup<B> sb)
A semigroup for functions.
|
static <A> Semigroup<A> |
last()
Return the last value, ignore the first
|
static <A extends Comparable<A>> |
max()
A semigroup that yields the maximum of comparable values.
|
static <A> Semigroup<A> |
max(Comparator<A> comparator)
A semigroup that yields the maximum of by a comparator.
|
static <A extends Comparable<A>> |
min()
A semigroup that yields the minimum of comparable values.
|
static <A> Semigroup<A> |
min(Comparator<A> comparator)
A semigroup that yields the minimum of by a comparator.
|
public static final Semigroup<Integer> intMaximum
public static final Semigroup<Integer> intMinimum
public static final Semigroup<BigInteger> bigintMaximum
public static final Semigroup<BigInteger> bigintMinimum
public static final Semigroup<BigDecimal> bigDecimalMaximum
public static final Semigroup<BigDecimal> bigDecimalMinimum
public static final Semigroup<Long> longMaximum
public static <A> Semigroup<A> first()
A - result typeSemigroup that ignores the second
inputpublic static <A> Semigroup<A> last()
A - result typeSemigroup that ignores the first inputpublic static <A,B> Semigroup<Function<A,B>> function(Semigroup<B> sb)
A - input typeB - composable output typesb - The semigroup for the codomain.public static <A> Semigroup<A> max(Comparator<A> comparator)
A - result typecomparator - the comparator used to define the max of two value.public static <A> Semigroup<A> min(Comparator<A> comparator)
A - result typecomparator - the comparator used to define the min of two value.public static <A extends Comparable<A>> Semigroup<A> max()
A - result typepublic static <A extends Comparable<A>> Semigroup<A> min()
A - result typepublic static <L,R> Semigroup<Either<L,R>> either(Semigroup<L> lS, Semigroup<R> rS)
L - left typeR - right typelS - Semigroup for left valuesrS - Semigroup for right valuesCopyright © 2017 Atlassian. All rights reserved.