Class LessThanFilter

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

@Wiring public class LessThanFilter extends ComparatorFilter
Filters JSONObjects where the value of the specified key is less than the provided comparison value. Supports ValueGenerator as a value.
Author:
jbanes
  • Constructor Details

    • LessThanFilter

      public LessThanFilter()
      Creates a new LessThanFilter.
    • LessThanFilter

      public LessThanFilter(String key, Object value)
      Creates a new LessThanFilter for evaluating whether the value of a specified key is less than the comparison value.
      Parameters:
      key - The key to evaluate.
      value - The comparison value.
  • Method Details

    • test

      public boolean test(JSONObject record)
      Tests if the value of the specified key in the record is less than the comparison value.
      Parameters:
      record - The record to evaluate.
      Returns:
      True if the value of the record's specified key is less than the comparison value.