Class LessThanOrEqualFilter

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

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

    • LessThanOrEqualFilter

      public LessThanOrEqualFilter()
      Creates a new LessThanOrEqualFilter.
    • LessThanOrEqualFilter

      public LessThanOrEqualFilter(String key, Object value)
      Creates a new LessThanOrEqualFilter for evaluating whether the value of a specified key is less than or equal to 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 or equal to the comparison value.
      Parameters:
      record - The record to evaluate.
      Returns:
      True if the value of the record's specified key is less than or equal to the comparison value.