Class IsNotEmpty
java.lang.Object
com.northconcepts.datapipeline.filter.FieldFilterRule
com.northconcepts.datapipeline.filter.rule.IsNotEmpty
Field filter rule that returns true if a field value is not empty.
This is the inverse of
IsEmpty.
A field is considered not empty if:
- The field value is not null
- The field is not an empty array
- The field is a string value that is not empty and contains more than just whitespace characters
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns true if the given field satisfies this rule; called byFieldFilterwith each field it checks.toString()Methods inherited from class com.northconcepts.datapipeline.filter.FieldFilterRule
getFieldFilter
-
Constructor Details
-
IsNotEmpty
public IsNotEmpty()Creates a new IsNotEmpty filter rule.
-
-
Method Details
-
allow
Description copied from class:FieldFilterRuleReturns true if the given field satisfies this rule; called byFieldFilterwith each field it checks.- Specified by:
allowin classFieldFilterRule
-
toString
-