Class SquareRootFunction
- 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.AbstractMathSingleValueFunction
-
- org.eclipse.nebula.widgets.nattable.formula.function.SquareRootFunction
-
- All Implemented Interfaces:
FunctionValue
,OperatorFunctionValue
public class SquareRootFunction extends AbstractMathSingleValueFunction
Returns the positive square root of a given number.- Since:
- 1.4
-
-
Field Summary
-
Fields inherited from class org.eclipse.nebula.widgets.nattable.formula.function.AbstractFunction
values
-
-
Constructor Summary
Constructors Constructor Description SquareRootFunction()
SquareRootFunction(List<FunctionValue> values)
SquareRootFunction(FunctionValue value)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addFunctionValue(FunctionValue value)
Add the givenFunctionValue
for calculation.BigDecimal
getValue()
String
toString()
-
Methods inherited from class org.eclipse.nebula.widgets.nattable.formula.function.AbstractMathSingleValueFunction
getSingleValue
-
Methods inherited from class org.eclipse.nebula.widgets.nattable.formula.function.AbstractMathFunction
convertValue, validateMethodParameter
-
Methods inherited from class org.eclipse.nebula.widgets.nattable.formula.function.AbstractFunction
isEmpty
-
-
-
-
Constructor Detail
-
SquareRootFunction
public SquareRootFunction()
-
SquareRootFunction
public SquareRootFunction(FunctionValue value)
-
SquareRootFunction
public SquareRootFunction(List<FunctionValue> values)
-
-
Method Detail
-
addFunctionValue
public void addFunctionValue(FunctionValue value)
Description copied from interface:OperatorFunctionValue
Add the givenFunctionValue
for calculation.- Specified by:
addFunctionValue
in interfaceOperatorFunctionValue
- Overrides:
addFunctionValue
in classAbstractMathSingleValueFunction
- Parameters:
value
- The value to add.
-
getValue
public BigDecimal getValue()
- Returns:
- The value this
FunctionValue
carries or calculates based on its function.
-
-