Class AbstractMathSingleValueFunction
- 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
-
- All Implemented Interfaces:
FunctionValue
,OperatorFunctionValue
- Direct Known Subclasses:
NegateFunction
,SquareRootFunction
public abstract class AbstractMathSingleValueFunction extends AbstractMathFunction
SpecializedAbstractMathFunction
that only allows a single value for processing.- Since:
- 1.4
-
-
Field Summary
-
Fields inherited from class org.eclipse.nebula.widgets.nattable.formula.function.AbstractFunction
values
-
-
Constructor Summary
Constructors Constructor Description AbstractMathSingleValueFunction()
AbstractMathSingleValueFunction(List<FunctionValue> values)
AbstractMathSingleValueFunction(FunctionValue value)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addFunctionValue(FunctionValue value)
Add the givenFunctionValue
for calculation.protected FunctionValue
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
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.eclipse.nebula.widgets.nattable.formula.function.FunctionValue
getValue
-
-
-
-
Constructor Detail
-
AbstractMathSingleValueFunction
public AbstractMathSingleValueFunction()
-
AbstractMathSingleValueFunction
public AbstractMathSingleValueFunction(FunctionValue value)
-
AbstractMathSingleValueFunction
public AbstractMathSingleValueFunction(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 classAbstractMathFunction
- Parameters:
value
- The value to add.
-
getSingleValue
protected FunctionValue getSingleValue()
- Returns:
- The single value that is contained in this function.
-
-