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, hasVariableArgs
public int getRequiredArgsCount()
public int getOptionalArgsCount()
FunctionBase
getOptionalArgsCount
in interface Function
getOptionalArgsCount
in class FunctionBase
public Property getOptionalArgDefault(int index, PropertyInfo pi) throws PropertyException
FunctionBase
getOptionalArgDefault
in interface Function
getOptionalArgDefault
in class FunctionBase
index
- 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-2017 The Apache Software Foundation. All Rights Reserved.