|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Objectorg.thymeleaf.util.AggregateUtils
public final class AggregateUtils
Method Summary | |
---|---|
static java.math.BigDecimal |
avg(byte[] target)
Returns the average of all the numbers contained in the provided array. |
static java.math.BigDecimal |
avg(double[] target)
Returns the average of all the numbers contained in the provided array. |
static java.math.BigDecimal |
avg(float[] target)
Returns the average of all the numbers contained in the provided array. |
static java.math.BigDecimal |
avg(int[] target)
Returns the average of all the numbers contained in the provided array. |
static java.math.BigDecimal |
avg(Iterable<? extends Number> target)
Returns the average of all the numbers contained in the provided iterable (e.g. a collection). |
static java.math.BigDecimal |
avg(long[] target)
Returns the average of all the numbers contained in the provided array. |
static java.math.BigDecimal |
avg(Object[] target)
Returns the average of all the numbers contained in the provided array. |
static java.math.BigDecimal |
avg(short[] target)
Returns the average of all the numbers contained in the provided array. |
static java.math.BigDecimal |
sum(byte[] target)
Returns the sum of all the numbers contained in the provided array. |
static java.math.BigDecimal |
sum(double[] target)
Returns the sum of all the numbers contained in the provided array. |
static java.math.BigDecimal |
sum(float[] target)
Returns the sum of all the numbers contained in the provided array. |
static java.math.BigDecimal |
sum(int[] target)
Returns the sum of all the numbers contained in the provided array. |
static java.math.BigDecimal |
sum(Iterable<? extends Number> target)
Returns the sum of all the numbers contained in the provided iterable (e.g. a collection). |
static java.math.BigDecimal |
sum(long[] target)
Returns the sum of all the numbers contained in the provided array. |
static java.math.BigDecimal |
sum(Object[] target)
Returns the sum of all the numbers contained in the provided array. |
static java.math.BigDecimal |
sum(short[] target)
Returns the sum of all the numbers contained in the provided array. |
Methods inherited from class Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static java.math.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 objects
public static java.math.BigDecimal sum(Object[] target)
Returns the sum of all the numbers contained in the provided array.
target
- the array of numbers
public static java.math.BigDecimal sum(byte[] target)
Returns the sum of all the numbers contained in the provided array.
target
- the array of numbers
public static java.math.BigDecimal sum(short[] target)
Returns the sum of all the numbers contained in the provided array.
target
- the array of numbers
public static java.math.BigDecimal sum(int[] target)
Returns the sum of all the numbers contained in the provided array.
target
- the array of numbers
public static java.math.BigDecimal sum(long[] target)
Returns the sum of all the numbers contained in the provided array.
target
- the array of numbers
public static java.math.BigDecimal sum(float[] target)
Returns the sum of all the numbers contained in the provided array.
target
- the array of numbers
public static java.math.BigDecimal sum(double[] target)
Returns the sum of all the numbers contained in the provided array.
target
- the array of numbers
public static java.math.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 objects
public static java.math.BigDecimal avg(Object[] target)
Returns the average of all the numbers contained in the provided array.
target
- the array of numbers
public static java.math.BigDecimal avg(byte[] target)
Returns the average of all the numbers contained in the provided array.
target
- the array of numbers
public static java.math.BigDecimal avg(short[] target)
Returns the average of all the numbers contained in the provided array.
target
- the array of numbers
public static java.math.BigDecimal avg(int[] target)
Returns the average of all the numbers contained in the provided array.
target
- the array of numbers
public static java.math.BigDecimal avg(long[] target)
Returns the average of all the numbers contained in the provided array.
target
- the array of numbers
public static java.math.BigDecimal avg(float[] target)
Returns the average of all the numbers contained in the provided array.
target
- the array of numbers
public static java.math.BigDecimal avg(double[] target)
Returns the average of all the numbers contained in the provided array.
target
- the array of numbers
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |