Class GreaterThanFilter

java.lang.Object
com.invirgance.convirgance.transform.filter.ComparatorFilter
com.invirgance.convirgance.transform.filter.GreaterThanFilter
All Implemented Interfaces:
Filter, Transformer, Predicate<JSONObject>

@Wiring public class GreaterThanFilter extends ComparatorFilter
Used to check if a JSONObjects key has a value greater than the provided minimum value. Supports ValueGenerator as a value.
Author:
jbanes
  • Constructor Details

    • GreaterThanFilter

      public GreaterThanFilter()
      Creates a new GreaterThanFilter.
    • GreaterThanFilter

      public GreaterThanFilter(String key, Object value)
      Creates a new Comparator to check the expected key against the minimum value.
      Parameters:
      key - The key to check.
      value - The minimum value.
  • Method Details

    • test

      public boolean test(JSONObject record)
      Tests the record to see if the expected key has a value greater than the comparison value.
      Parameters:
      record - The record to test.
      Returns:
      True if the record's key has a value greater than the comparison value.