org.pentaho.reporting.libraries.formula.function.information
Class IsEvenFunction

java.lang.Object
  extended by org.pentaho.reporting.libraries.formula.function.information.IsEvenFunction
All Implemented Interfaces:
Serializable, Function

public class IsEvenFunction
extends Object
implements Function

This function retruns true if the given value is an even number.

Author:
Cedric Pronzato
See Also:
Serialized Form

Constructor Summary
IsEvenFunction()
           
 
Method Summary
 TypeValuePair evaluate(FormulaContext context, ParameterCallback parameters)
           
 String getCanonicalName()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IsEvenFunction

public IsEvenFunction()
Method Detail

evaluate

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

getCanonicalName

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