Class FieldListProcessor
- java.lang.Object
-
- com.singularsys.extensions.lambda.StandardListProcessor
-
- com.singularsys.extensions.lambda.FieldListProcessor
-
- All Implemented Interfaces:
ListProcessor
,JepComponent
,java.io.Serializable
- Direct Known Subclasses:
MatrixListProcessor
public class FieldListProcessor extends StandardListProcessor
A ListProcessor when a comparisons are performed using aFieldI
.- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class com.singularsys.extensions.lambda.StandardListProcessor
sortFun
-
-
Constructor Summary
Constructors Constructor Description FieldListProcessor(FieldI field)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
compareResult(java.lang.Object val)
Converts results from Jep evaluation to an integer -1, 0 or 1 used in comparison.-
Methods inherited from class com.singularsys.extensions.lambda.StandardListProcessor
fromArgs, fromCollection, fromList, getLightWeightInstance, getList, init
-
-
-
-
Constructor Detail
-
FieldListProcessor
public FieldListProcessor(FieldI field)
-
-
Method Detail
-
compareResult
public int compareResult(java.lang.Object val) throws EvaluationException
Description copied from class:StandardListProcessor
Converts results from Jep evaluation to an integer -1, 0 or 1 used in comparison.- Specified by:
compareResult
in interfaceListProcessor
- Overrides:
compareResult
in classStandardListProcessor
- Parameters:
val
- input value from Jep environment, expected to be a type which can be converted to an Number.- Returns:
- -1, 0 or 1
- Throws:
EvaluationException
- on error- See Also:
Comparator.compare(Object, Object)
-
-