Class 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
    • Constructor Detail

      • GreaterThan

        protected GreaterThan​(java.lang.Object leftValue,
                              java.lang.Object rightValue,
                              boolean orEquals)
      • GreaterThan

        public GreaterThan​(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 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'