Class Equals

  • All Implemented Interfaces:
    Evaluator
    Direct Known Subclasses:
    Distinct

    public class Equals
    extends FieldEvaluator
    Compare two object and return true if the objects are equals and false in other ways.
    Author:
    javaito
    • Constructor Detail

      • Equals

        public Equals​(java.lang.Object leftValue,
                      java.lang.Object rightValue)
    • 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 equals. This method support any kind of object like field value and parameter value too.
        Parameters:
        object - Instance to obtain the field value.
        consumer - Data source consumer
        dataSource - Data source.
        Returns:
        True if the two values are equals and false in other ways
        Throws:
        java.lang.IllegalArgumentException - If is impossible to get value from instance with introspection.