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, toString
public CompareFunction(String name, Comparator<T> comparator, ValueFunctions.CompareType compType, Class clazz)
public String getParamDesc()
getParamDesc
in class ValueFunctions.NamedValueFunction
public boolean checkArgs(List<Value> in)
ValueFunction
in
- The input argumentspublic Value apply(Env env, List<Value> in)
ValueFunction
env
- The environment to usein
- The input arguments