Class AggregateUtils
- Since:
- 1.0
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic BigDecimalavg(byte[] target) Returns the average of all the numbers contained in the provided array.static BigDecimalavg(double[] target) Returns the average of all the numbers contained in the provided array.static BigDecimalavg(float[] target) Returns the average of all the numbers contained in the provided array.static BigDecimalavg(int[] target) Returns the average of all the numbers contained in the provided array.static BigDecimalavg(long[] target) Returns the average of all the numbers contained in the provided array.static BigDecimalavg(short[] target) Returns the average of all the numbers contained in the provided array.static BigDecimalReturns the average of all the numbers contained in the provided iterable (e.g.static BigDecimalReturns the average of all the numbers contained in the provided array.static BigDecimalsum(byte[] target) Returns the sum of all the numbers contained in the provided array.static BigDecimalsum(double[] target) Returns the sum of all the numbers contained in the provided array.static BigDecimalsum(float[] target) Returns the sum of all the numbers contained in the provided array.static BigDecimalsum(int[] target) Returns the sum of all the numbers contained in the provided array.static BigDecimalsum(long[] target) Returns the sum of all the numbers contained in the provided array.static BigDecimalsum(short[] target) Returns the sum of all the numbers contained in the provided array.static BigDecimalReturns the sum of all the numbers contained in the provided iterable (e.g.static BigDecimalReturns the sum of all the numbers contained in the provided array.private static BigDecimaltoBigDecimal(byte number) private static BigDecimaltoBigDecimal(double number) private static BigDecimaltoBigDecimal(float number) private static BigDecimaltoBigDecimal(int number) private static BigDecimaltoBigDecimal(long number) private static BigDecimaltoBigDecimal(short number) private static BigDecimaltoBigDecimal(Number number)
-
Constructor Details
-
AggregateUtils
private AggregateUtils()
-
-
Method Details
-
sum
Returns the sum of all the numbers contained in the provided iterable (e.g. a collection).
- Parameters:
target- the iterable containing the number objects- Returns:
- the sum, as a BigDecimal
-
sum
Returns the sum of all the numbers contained in the provided array.
- Parameters:
target- the array of numbers- Returns:
- the sum, as a BigDecimal
-
sum
Returns the sum of all the numbers contained in the provided array.
- Parameters:
target- the array of numbers- Returns:
- the sum, as a BigDecimal
-
sum
Returns the sum of all the numbers contained in the provided array.
- Parameters:
target- the array of numbers- Returns:
- the sum, as a BigDecimal
-
sum
Returns the sum of all the numbers contained in the provided array.
- Parameters:
target- the array of numbers- Returns:
- the sum, as a BigDecimal
-
sum
Returns the sum of all the numbers contained in the provided array.
- Parameters:
target- the array of numbers- Returns:
- the sum, as a BigDecimal
-
sum
Returns the sum of all the numbers contained in the provided array.
- Parameters:
target- the array of numbers- Returns:
- the sum, as a BigDecimal
-
sum
Returns the sum of all the numbers contained in the provided array.
- Parameters:
target- the array of numbers- Returns:
- the sum, as a BigDecimal
-
avg
Returns the average of all the numbers contained in the provided iterable (e.g. a collection).
- Parameters:
target- the iterable containing the number objects- Returns:
- the average, as a BigDecimal
-
avg
Returns the average of all the numbers contained in the provided array.
- Parameters:
target- the array of numbers- Returns:
- the average, as a BigDecimal
-
avg
Returns the average of all the numbers contained in the provided array.
- Parameters:
target- the array of numbers- Returns:
- the average, as a BigDecimal
-
avg
Returns the average of all the numbers contained in the provided array.
- Parameters:
target- the array of numbers- Returns:
- the average, as a BigDecimal
-
avg
Returns the average of all the numbers contained in the provided array.
- Parameters:
target- the array of numbers- Returns:
- the average, as a BigDecimal
-
avg
Returns the average of all the numbers contained in the provided array.
- Parameters:
target- the array of numbers- Returns:
- the average, as a BigDecimal
-
avg
Returns the average of all the numbers contained in the provided array.
- Parameters:
target- the array of numbers- Returns:
- the average, as a BigDecimal
-
avg
Returns the average of all the numbers contained in the provided array.
- Parameters:
target- the array of numbers- Returns:
- the average, as a BigDecimal
-
toBigDecimal
-
toBigDecimal
-
toBigDecimal
-
toBigDecimal
-
toBigDecimal
-
toBigDecimal
-
toBigDecimal
-