Package org.openl.rules.util
Class Sum
- java.lang.Object
-
- org.openl.rules.util.Sum
-
public final class Sum extends Object
Sum functions for different types of numbers.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Integersum(Byte... values)Returns the sum of values.static Doublesum(Double... values)Returns the sum of values.static Floatsum(Float... values)Returns the sum of values.static Integersum(Integer... values)Returns the sum of values.static Longsum(Long... values)Returns the sum of values.static Integersum(Short... values)Returns the sum of values.static BigDecimalsum(BigDecimal... values)Returns the sum of values.static BigIntegersum(BigInteger... values)Returns the sum of values.static <T extends Number>
Doublesum(T... values)Returns the sum of values.
-
-
-
Method Detail
-
sum
public static BigDecimal sum(BigDecimal... values)
Returns the sum of values.
-
sum
public static BigInteger sum(BigInteger... values)
Returns the sum of values.
-
-