Class GreaterThanFilter
java.lang.Object
com.invirgance.convirgance.transform.filter.ComparatorFilter
com.invirgance.convirgance.transform.filter.GreaterThanFilter
- All Implemented Interfaces:
Filter,Transformer,Predicate<JSONObject>
Used to check if a JSONObjects key has a value greater than the provided
minimum value. Supports
ValueGenerator as a value.- Author:
- jbanes
-
Constructor Summary
ConstructorsConstructorDescriptionCreates a new GreaterThanFilter.GreaterThanFilter(String key, Object value) Creates a new Comparator to check the expected key against the minimum value. -
Method Summary
Modifier and TypeMethodDescriptionbooleantest(JSONObject record) Tests the record to see if the expected key has a value greater 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
-
GreaterThanFilter
public GreaterThanFilter()Creates a new GreaterThanFilter. -
GreaterThanFilter
Creates a new Comparator to check the expected key against the minimum value.- Parameters:
key- The key to check.value- The minimum value.
-
-
Method Details
-
test
Tests the record to see if the expected key has a value greater than the comparison value.- Parameters:
record- The record to test.- Returns:
- True if the record's key has a value greater than the comparison value.
-