public static class ValueFunctions.CompareFunction<T> extends ValueFunctions.NamedValueFunction
name, signature| Constructor and Description |
|---|
CompareFunction(String name,
Comparator<T> comparator,
ValueFunctions.CompareType compType,
Class clazz) |
| Modifier and Type | Method and Description |
|---|---|
Value |
apply(Env env,
List<Value> in)
Applies the function to the list values using the environment as context
and returns the evaluated value.
|
boolean |
checkArgs(List<Value> in)
Checks if the arguments are valid.
|
Boolean |
compare(T o1,
T o2) |
String |
getParamDesc() |
getDescription, getParamDesc, getTypeName, toStringpublic CompareFunction(String name, Comparator<T> comparator, ValueFunctions.CompareType compType, Class clazz)
public String getParamDesc()
getParamDesc in class ValueFunctions.NamedValueFunctionpublic boolean checkArgs(List<Value> in)
ValueFunctionin - The input argumentspublic Value apply(Env env, List<Value> in)
ValueFunctionenv - The environment to usein - The input arguments