public abstract class AbstractVNumberVNumberArrayToVNumberArrayFormulaFunction extends Object implements FormulaFunction
VNumberArray and a
 VNumber as arguments
 and return a VNumberArray.
 This class takes care of:
VNumberVNumberArray| Constructor and Description | 
|---|
AbstractVNumberVNumberArrayToVNumberArrayFormulaFunction(String name,
                                                        String description,
                                                        String arg1Name,
                                                        String arg2Name)
Creates a new function. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
abstract ListNumber | 
calculate(double arg1,
         ListNumber arg2)
Calculates the result based on the two arguments. 
 | 
Object | 
calculate(List<Object> args)
Calculate the result of the function given the arguments. 
 | 
List<String> | 
getArgumentNames()
The ordered list of the argument names. 
 | 
List<Class<?>> | 
getArgumentTypes()
The ordered list of the arguments type. 
 | 
String | 
getDescription()
Return the description of the function. 
 | 
String | 
getName()
Return the name of the function. 
 | 
Class<?> | 
getReturnType()
The type of the function result. 
 | 
boolean | 
isPure()
Whether the function is a pure function, given the same
 arguments always returns the same result. 
 | 
boolean | 
isVarArgs()
Whether the function takes a variable number of arguments. 
 | 
public AbstractVNumberVNumberArrayToVNumberArrayFormulaFunction(String name, String description, String arg1Name, String arg2Name)
name - function name; can't be nulldescription - function description; can't be nullarg1Name - first argument name; can't be nullarg2Name - second argument name; can't be nullpublic final boolean isPure()
FormulaFunctionisPure in interface FormulaFunctionpublic final boolean isVarArgs()
FormulaFunctionVariable arguments can only be at the end of the argument list, and have the same type.
isVarArgs in interface FormulaFunctionpublic final String getName()
FormulaFunctiongetName in interface FormulaFunctionpublic final String getDescription()
FormulaFunctiongetDescription in interface FormulaFunctionpublic final List<Class<?>> getArgumentTypes()
FormulaFunctiongetArgumentTypes in interface FormulaFunctionpublic final List<String> getArgumentNames()
FormulaFunctiongetArgumentNames in interface FormulaFunctionpublic final Class<?> getReturnType()
FormulaFunctiongetReturnType in interface FormulaFunctionpublic final Object calculate(List<Object> args)
FormulaFunctioncalculate in interface FormulaFunctionargs - the argument listpublic abstract ListNumber calculate(double arg1, ListNumber arg2)
arg1 - the first argumentarg2 - the second argument; not nullCopyright © 2015. All rights reserved.