public class FromNearestSpecifiedValueFunction extends FunctionBase
| Constructor and Description |
|---|
FromNearestSpecifiedValueFunction() |
| Modifier and Type | Method and Description |
|---|---|
Property |
eval(Property[] args,
PropertyInfo pInfo)
Evaluate the function
|
Property |
getOptionalArgDefault(int index,
PropertyInfo pi) |
int |
getOptionalArgsCount() |
int |
getRequiredArgsCount() |
getPercentBase, getPropertyName, hasVariableArgspublic int getRequiredArgsCount()
public int getOptionalArgsCount()
FunctionBasegetOptionalArgsCount in interface FunctiongetOptionalArgsCount in class FunctionBasepublic Property getOptionalArgDefault(int index, PropertyInfo pi) throws PropertyException
FunctionBasegetOptionalArgDefault in interface FunctiongetOptionalArgDefault in class FunctionBaseindex - of optional argumentpi - property information instance that applies to property being evaluatedPropertyException - if index is greater than or equal to optional args countpublic Property eval(Property[] args, PropertyInfo pInfo) throws PropertyException
args - an array of Properties that should be evaluatedpInfo - property information instance that applies to property being evaluatedPropertyException - for problems when evaluating the functionCopyright 1999-2022 The Apache Software Foundation. All Rights Reserved.