Package org.hcjf.layers.query
Class Distinct
- java.lang.Object
-
- org.hcjf.layers.query.BaseEvaluator
-
- org.hcjf.layers.query.FieldEvaluator
-
- org.hcjf.layers.query.Equals
-
- org.hcjf.layers.query.Distinct
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.hcjf.layers.query.BaseEvaluator
BaseEvaluator.QueryValue, BaseEvaluator.ReplaceableValue, BaseEvaluator.UnprocessedValue
-
-
Constructor Summary
Constructors Constructor Description Distinct(java.lang.Object leftValue, java.lang.Object rightValue)
-
Method Summary
Modifier and Type Method Description booleanevaluate(java.lang.Object object, Queryable.DataSource dataSource, Queryable.Consumer consumer)Evaluate if the evaluator's value and the object's value in the specified field of the parameter instance are distinct.-
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 evaluator's value and the object's value in the specified field of the parameter instance are distinct. This method support any kind of object like field value and parameter value too.- Specified by:
evaluatein interfaceEvaluator- Overrides:
evaluatein classEquals- Parameters:
object- Instance to obtain the field value.dataSource- Data sourceconsumer- Data source consumer- Returns:
- True if the two values are distinct and false in other ways
- Throws:
java.lang.IllegalArgumentException- If is impossible to get value from instance with introspection.
-
-