org.jfree.formula.function.information

Class ChooseFunction

Implemented Interfaces:
Function, Serializable

public class ChooseFunction
extends java.lang.Object
implements 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

Constructor Summary

ChooseFunction()

Method Summary

TypeValuePair
evaluate(FormulaContext context, ParameterCallback parameters)
String
getCanonicalName()

Constructor Details

ChooseFunction

public ChooseFunction()

Method Details

evaluate

public TypeValuePair evaluate(FormulaContext context,
                              ParameterCallback parameters)
            throws EvaluationException
Specified by:
evaluate in interface Function

getCanonicalName

public String getCanonicalName()
Specified by:
getCanonicalName in interface Function