Class EqualsFilter

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

@Wiring public class EqualsFilter extends ComparatorFilter
Used when filtering data that should be equal to some criteria. Supports ValueGenerator as a value.
Author:
jbanes
  • Constructor Details

    • EqualsFilter

      public EqualsFilter()
      Creates a new EqualsFilter.
    • EqualsFilter

      public EqualsFilter(String key, Object value)
      Creates a new EqualsFilter with the key to evaluate and its expected/comparison value.
      Parameters:
      key - The key to evaluate for compared Objects.
      value - The comparison value.
  • Method Details

    • test

      public boolean test(JSONObject record)
      Evaluates the provided JSONObject, checking the key and its value to this Filters comparison value.
      Parameters:
      record - The JSONObject to evaluate.
      Returns:
      True if the record has the expected key and value.