public final class AggregateUtils extends Object
Modifier and Type | Method and Description |
---|---|
static BigDecimal |
avg(byte[] target)
Returns the average of all the numbers contained in the provided array.
|
static BigDecimal |
avg(double[] target)
Returns the average of all the numbers contained in the provided array.
|
static BigDecimal |
avg(float[] target)
Returns the average of all the numbers contained in the provided array.
|
static BigDecimal |
avg(int[] target)
Returns the average of all the numbers contained in the provided array.
|
static BigDecimal |
avg(Iterable<? extends Number> target)
Returns the average of all the numbers contained in the provided
iterable (e.g.
|
static BigDecimal |
avg(long[] target)
Returns the average of all the numbers contained in the provided array.
|
static BigDecimal |
avg(Object[] target)
Returns the average of all the numbers contained in the provided array.
|
static BigDecimal |
avg(short[] target)
Returns the average of all the numbers contained in the provided array.
|
static BigDecimal |
sum(byte[] target)
Returns the sum of all the numbers contained in the provided array.
|
static BigDecimal |
sum(double[] target)
Returns the sum of all the numbers contained in the provided array.
|
static BigDecimal |
sum(float[] target)
Returns the sum of all the numbers contained in the provided array.
|
static BigDecimal |
sum(int[] target)
Returns the sum of all the numbers contained in the provided array.
|
static BigDecimal |
sum(Iterable<? extends Number> target)
Returns the sum of all the numbers contained in the provided
iterable (e.g.
|
static BigDecimal |
sum(long[] target)
Returns the sum of all the numbers contained in the provided array.
|
static BigDecimal |
sum(Object[] target)
Returns the sum of all the numbers contained in the provided array.
|
static BigDecimal |
sum(short[] target)
Returns the sum of all the numbers contained in the provided array.
|
public static BigDecimal sum(Iterable<? extends Number> target)
Returns the sum of all the numbers contained in the provided iterable (e.g. a collection).
target
- the iterable containing the number objectspublic static BigDecimal sum(Object[] target)
Returns the sum of all the numbers contained in the provided array.
target
- the array of numberspublic static BigDecimal sum(byte[] target)
Returns the sum of all the numbers contained in the provided array.
target
- the array of numberspublic static BigDecimal sum(short[] target)
Returns the sum of all the numbers contained in the provided array.
target
- the array of numberspublic static BigDecimal sum(int[] target)
Returns the sum of all the numbers contained in the provided array.
target
- the array of numberspublic static BigDecimal sum(long[] target)
Returns the sum of all the numbers contained in the provided array.
target
- the array of numberspublic static BigDecimal sum(float[] target)
Returns the sum of all the numbers contained in the provided array.
target
- the array of numberspublic static BigDecimal sum(double[] target)
Returns the sum of all the numbers contained in the provided array.
target
- the array of numberspublic static BigDecimal avg(Iterable<? extends Number> target)
Returns the average of all the numbers contained in the provided iterable (e.g. a collection).
target
- the iterable containing the number objectspublic static BigDecimal avg(Object[] target)
Returns the average of all the numbers contained in the provided array.
target
- the array of numberspublic static BigDecimal avg(byte[] target)
Returns the average of all the numbers contained in the provided array.
target
- the array of numberspublic static BigDecimal avg(short[] target)
Returns the average of all the numbers contained in the provided array.
target
- the array of numberspublic static BigDecimal avg(int[] target)
Returns the average of all the numbers contained in the provided array.
target
- the array of numberspublic static BigDecimal avg(long[] target)
Returns the average of all the numbers contained in the provided array.
target
- the array of numberspublic static BigDecimal avg(float[] target)
Returns the average of all the numbers contained in the provided array.
target
- the array of numberspublic static BigDecimal avg(double[] target)
Returns the average of all the numbers contained in the provided array.
target
- the array of numbersCopyright © 2016 The THYMELEAF team. All rights reserved.