public final class accumulators extends StaticObject
Modifier and Type | Class and Description |
---|---|
static class |
accumulators.Max<C extends Comparable<? super C>>
Calculates max value.
|
static class |
accumulators.Min<C extends Comparable<? super C>>
Calculates min value.
|
static class |
accumulators.MinMax<C extends Comparable<? super C>>
Calculates min and max values.
|
static class |
accumulators.Sum<G extends GroupAdditive<G>>
Deprecated.
Will be removed.
|
Modifier and Type | Field and Description |
---|---|
static Accumulator<Object> |
NULL |
Modifier and Type | Method and Description |
---|---|
static <T> void |
accumulate(Iterable<? extends T> values,
Accumulator<? super T>... accus)
Calls the
Accumulator.accumulate(Object) method of all given
accumulators with each value of the given values . |
static <T> void |
accumulate(Iterable<? extends T> values,
Accumulator<? super T> a)
Calls the
Accumulator.accumulate(Object) method of the given
accumulator with each value of the given values . |
static <T> void |
accumulate(Iterable<? extends T> values,
Accumulator<? super T> a1,
Accumulator<? super T> a2)
Calls the
Accumulator.accumulate(Object) method of all given
accumulators with each value of the given values . |
static <T> void |
accumulate(Iterable<? extends T> values,
Accumulator<? super T> a1,
Accumulator<? super T> a2,
Accumulator<? super T> a3)
Calls the
Accumulator.accumulate(Object) method of all given
accumulators with each value of the given values . |
static <T> void |
accumulate(Iterable<? extends T> values,
Accumulator<? super T> a1,
Accumulator<? super T> a2,
Accumulator<? super T> a3,
Accumulator<? super T> a4)
Calls the
Accumulator.accumulate(Object) method of all given
accumulators with each value of the given values . |
static <T> void |
accumulate(Iterable<? extends T> values,
Accumulator<? super T> a1,
Accumulator<? super T> a2,
Accumulator<? super T> a3,
Accumulator<? super T> a4,
Accumulator<? super T> a5)
Calls the
Accumulator.accumulate(Object) method of all given
accumulators with each value of the given values . |
static <T> void |
accumulate(Iterable<? extends T> values,
Seq<? extends Accumulator<? super T>> accus)
Calls the
Accumulator.accumulate(Object) method of all given
accumulators with each value of the given values . |
static <T> void |
accumulate(Iterator<? extends T> values,
Accumulator<? super T> a)
Calls the
Accumulator.accumulate(Object) method of the given
accumulator with each value of the given values . |
public static final Accumulator<Object> NULL
public static <T> void accumulate(Iterable<? extends T> values, Seq<? extends Accumulator<? super T>> accus)
Accumulator.accumulate(Object)
method of all given
accumulators
with each value of the given values
. The
accumulation is done in parallel.T
- the value type.values
- the values to accumulate.accus
- the accumulators to apply.NullPointerException
- if one of the given arguments is null
.@SafeVarargs public static <T> void accumulate(Iterable<? extends T> values, Accumulator<? super T>... accus)
Accumulator.accumulate(Object)
method of all given
accumulators
with each value of the given values
. The
accumulation is done in parallel.T
- the value type.values
- the values to accumulate.accus
- the accumulators to apply.NullPointerException
- if one of the given arguments is null
.public static <T> void accumulate(Iterator<? extends T> values, Accumulator<? super T> a)
Accumulator.accumulate(Object)
method of the given
accumulator
with each value of the given values
.T
- the value type.values
- the values to accumulate.a
- the accumulator.NullPointerException
- if one of the given arguments is null
.public static <T> void accumulate(Iterable<? extends T> values, Accumulator<? super T> a)
Accumulator.accumulate(Object)
method of the given
accumulator
with each value of the given values
.T
- the value type.values
- the values to accumulate.a
- the accumulator.NullPointerException
- if one of the given arguments is null
.public static <T> void accumulate(Iterable<? extends T> values, Accumulator<? super T> a1, Accumulator<? super T> a2)
Accumulator.accumulate(Object)
method of all given
accumulators
with each value of the given values
. The
accumulation is done in parallel.T
- the value type.values
- the values to accumulate.a1
- the first accumulator.a2
- the second accumulator.NullPointerException
- if one of the given arguments is null
.public static <T> void accumulate(Iterable<? extends T> values, Accumulator<? super T> a1, Accumulator<? super T> a2, Accumulator<? super T> a3)
Accumulator.accumulate(Object)
method of all given
accumulators
with each value of the given values
. The
accumulation is done in parallel.T
- the value type.values
- the values to accumulate.a1
- the first accumulator.a2
- the second accumulator.a3
- the third accumulatorNullPointerException
- if one of the given arguments is null
.public static <T> void accumulate(Iterable<? extends T> values, Accumulator<? super T> a1, Accumulator<? super T> a2, Accumulator<? super T> a3, Accumulator<? super T> a4)
Accumulator.accumulate(Object)
method of all given
accumulators
with each value of the given values
. The
accumulation is done in parallel.T
- the value type.values
- the values to accumulate.a1
- the first accumulator.a2
- the second accumulator.a3
- the third accumulator.a4
- the fourth accumulator.NullPointerException
- if one of the given arguments is null
.public static <T> void accumulate(Iterable<? extends T> values, Accumulator<? super T> a1, Accumulator<? super T> a2, Accumulator<? super T> a3, Accumulator<? super T> a4, Accumulator<? super T> a5)
Accumulator.accumulate(Object)
method of all given
accumulators
with each value of the given values
. The
accumulation is done in parallel.T
- the value type.values
- the values to accumulate.a1
- the first accumulator.a2
- the second accumulator.a3
- the third accumulator.a4
- the fourth accumulator.a5
- the fifth accumulator.NullPointerException
- if one of the given arguments is null
.© 2007-2014 Franz Wilhelmstötter (2014-03-07 19:35)