Class ChooseFunction
java.lang.Object
org.pentaho.reporting.libraries.formula.function.information.ChooseFunction
- All Implemented Interfaces:
Serializable
,Function
This function uses an index to return a value from a list of values.
The first value index is 1, 2 for the second and so on.
- Author:
- Cedric Pronzato
- See Also:
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
ChooseFunction
public ChooseFunction()
-
-
Method Details
-
getCanonicalName
- Specified by:
getCanonicalName
in interfaceFunction
-
evaluate
public TypeValuePair evaluate(FormulaContext context, ParameterCallback parameters) throws EvaluationException - Specified by:
evaluate
in interfaceFunction
- Throws:
EvaluationException
-