Class AverageFunction
- java.lang.Object
-
- org.eclipse.nebula.widgets.nattable.formula.function.AbstractFunction
-
- org.eclipse.nebula.widgets.nattable.formula.function.AbstractMathFunction
-
- org.eclipse.nebula.widgets.nattable.formula.function.SumFunction
-
- org.eclipse.nebula.widgets.nattable.formula.function.AverageFunction
-
- All Implemented Interfaces:
FunctionValue
,OperatorFunctionValue
public class AverageFunction extends SumFunction
Returns the average of a list of supplied numbers.- Since:
- 1.4
-
-
Field Summary
-
Fields inherited from class org.eclipse.nebula.widgets.nattable.formula.function.AbstractFunction
values
-
-
Constructor Summary
Constructors Constructor Description AverageFunction()
AverageFunction(List<FunctionValue> values)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BigDecimal
getValue()
-
Methods inherited from class org.eclipse.nebula.widgets.nattable.formula.function.SumFunction
toString
-
Methods inherited from class org.eclipse.nebula.widgets.nattable.formula.function.AbstractMathFunction
addFunctionValue, convertValue, validateMethodParameter
-
Methods inherited from class org.eclipse.nebula.widgets.nattable.formula.function.AbstractFunction
isEmpty
-
-
-
-
Constructor Detail
-
AverageFunction
public AverageFunction()
-
AverageFunction
public AverageFunction(List<FunctionValue> values)
-
-
Method Detail
-
getValue
public BigDecimal getValue()
- Specified by:
getValue
in interfaceFunctionValue
- Overrides:
getValue
in classSumFunction
- Returns:
- The value this
FunctionValue
carries or calculates based on its function.
-
-