public class MatchPredicate extends FilterPredicate
EMPTY_FILTER| Constructor and Description |
|---|
MatchPredicate(String headerName,
Pattern pattern)
Creates a match predicate using a row column name and a
Pattern |
MatchPredicate(String headerName,
String patternString)
Creates a match predicate using a row column name and a pattern string
|
| Modifier and Type | Method and Description |
|---|---|
String |
toString()
Returns a string representation for this predicate
|
boolean |
valid(KeyValueGetter<String,?> kv)
Returns true if the row column value matches the pattern
|
public MatchPredicate(String headerName, String patternString)
headerName - row column namepatternString - pattern stringpublic boolean valid(KeyValueGetter<String,?> kv)
valid in class FilterPredicatekv - tested rowpublic String toString()
FilterPredicatetoString in class FilterPredicateCopyright © 2020. All rights reserved.