Class LessThanFilter
java.lang.Object
com.invirgance.convirgance.transform.filter.ComparatorFilter
com.invirgance.convirgance.transform.filter.LessThanFilter
- All Implemented Interfaces:
Filter,Transformer,Predicate<JSONObject>
Filters JSONObjects where the value of the specified key is less than the
provided comparison value. Supports
ValueGenerator as a value.- Author:
- jbanes
-
Constructor Summary
ConstructorsConstructorDescriptionCreates a new LessThanFilter.LessThanFilter(String key, Object value) Creates a new LessThanFilter for evaluating whether the value of a specified key is less than the comparison value. -
Method Summary
Modifier and TypeMethodDescriptionbooleantest(JSONObject record) Tests if the value of the specified key in the record is less than the comparison value.Methods inherited from class com.invirgance.convirgance.transform.filter.ComparatorFilter
getComparator, getKey, getValue, setKey, setValueMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.invirgance.convirgance.transform.Transformer
transform
-
Constructor Details
-
LessThanFilter
public LessThanFilter()Creates a new LessThanFilter. -
LessThanFilter
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
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.
-