Package org.hcjf.layers.query
Class GreaterThan
- java.lang.Object
-
- org.hcjf.layers.query.BaseEvaluator
-
- org.hcjf.layers.query.FieldEvaluator
-
- org.hcjf.layers.query.GreaterThan
-
- All Implemented Interfaces:
Evaluator
- Direct Known Subclasses:
GreaterThanOrEqual
public class GreaterThan extends FieldEvaluator
Evaluate if the field's value of the instance is greater than the parameter value.- Author:
- javaito
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.hcjf.layers.query.BaseEvaluator
BaseEvaluator.QueryValue, BaseEvaluator.ReplaceableValue, BaseEvaluator.UnprocessedValue
-
-
Constructor Summary
Constructors Modifier Constructor Description GreaterThan(java.lang.Object leftValue, java.lang.Object rightValue)protectedGreaterThan(java.lang.Object leftValue, java.lang.Object rightValue, boolean orEquals)
-
Method Summary
Modifier and Type Method Description booleanevaluate(java.lang.Object object, Queryable.DataSource dataSource, Queryable.Consumer consumer)Evaluate if the field's value of the instance is greater than the parameter value.-
Methods inherited from class org.hcjf.layers.query.FieldEvaluator
containsReference, copy, equals, getLeftValue, getProcessedLeftValue, getProcessedRightValue, getRightValue, numberEquals, toString
-
Methods inherited from class org.hcjf.layers.query.BaseEvaluator
getEvaluatorFields, getProcessedValue, isTrueForced, setEvaluatorFields, setTrueForced
-
-
-
-
Method Detail
-
evaluate
public boolean evaluate(java.lang.Object object, Queryable.DataSource dataSource, Queryable.Consumer consumer)Evaluate if the field's value of the instance is greater than the parameter value.- Parameters:
object- Object of the data collection.dataSource- Data source.consumer- Data source consumer- Returns:
- True if he field's value is greater than the parameter value and false in the other ways.
- Throws:
java.lang.IllegalArgumentException- If the introspection accessor fail: 'Greater than evaluator fail' If the parameter value or field's value are not comparable: 'Unsupported evaluator type' If the parameter value and field's value are incompatible: 'Incompatible types between value and field's value'
-
-