Class LessThanOrEqualFilter
java.lang.Object
com.invirgance.convirgance.transform.filter.ComparatorFilter
com.invirgance.convirgance.transform.filter.LessThanOrEqualFilter
- All Implemented Interfaces:
Filter,Transformer,Predicate<JSONObject>
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 Summary
ConstructorsConstructorDescriptionCreates a new LessThanOrEqualFilter.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. -
Method Summary
Modifier and TypeMethodDescriptionbooleantest(JSONObject record) Tests if the value of the specified key in the record is less than or equal to 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
-
LessThanOrEqualFilter
public LessThanOrEqualFilter()Creates a new LessThanOrEqualFilter. -
LessThanOrEqualFilter
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
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.
-