public abstract class AbstractVIntNumberVIntNumberToVIntNumberFormulaFunction extends Object implements FormulaFunction
This class takes care of:
| Constructor and Description |
|---|
AbstractVIntNumberVIntNumberToVIntNumberFormulaFunction(String name,
String description,
String arg1Name,
String arg2Name)
Creates a new function.
|
| Modifier and Type | Method and Description |
|---|---|
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 AbstractVIntNumberVIntNumberToVIntNumberFormulaFunction(String name, String description, String arg1Name, String arg2Name)
name - the name of the functiondescription - a short descriptionarg1Name - first argument namearg2Name - second argument namepublic String getName()
FormulaFunctiongetName in interface FormulaFunctionpublic String getDescription()
FormulaFunctiongetDescription in interface FormulaFunctionpublic boolean isPure()
FormulaFunctionisPure in interface FormulaFunctionpublic boolean isVarArgs()
FormulaFunctionVariable arguments can only be at the end of the argument list, and have the same type.
isVarArgs in interface FormulaFunctionpublic List<Class<?>> getArgumentTypes()
FormulaFunctiongetArgumentTypes in interface FormulaFunctionpublic List<String> getArgumentNames()
FormulaFunctiongetArgumentNames in interface FormulaFunctionpublic Class<?> getReturnType()
FormulaFunctiongetReturnType in interface FormulaFunctionpublic Object calculate(List<Object> args)
FormulaFunctioncalculate in interface FormulaFunctionargs - the argument listCopyright © 2010–2015. All rights reserved.