public class StringPatternSetUtil extends Object
Constructor and Description |
---|
StringPatternSetUtil() |
Modifier and Type | Method and Description |
---|---|
static Boolean |
evaluate(boolean defaultValue,
List<Pair<StringPatternSet,Boolean>> patterns,
String literal)
Executes a seriers of include/exclude patterns against a match string,
returning the last pattern match result as boolean in/out.
|
public static Boolean evaluate(boolean defaultValue, List<Pair<StringPatternSet,Boolean>> patterns, String literal)
defaultValue
- the default value if there are no patterns or no matches change the valuepatterns
- to match against, true in the pair for include, false for excludeliteral
- to match