public class StringPatternSetUtil
extends java.lang.Object
Constructor and Description |
---|
StringPatternSetUtil() |
Modifier and Type | Method and Description |
---|---|
static java.lang.Boolean |
evaluate(boolean defaultValue,
java.util.List<Pair<StringPatternSet,java.lang.Boolean>> patterns,
java.lang.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 java.lang.Boolean evaluate(boolean defaultValue, java.util.List<Pair<StringPatternSet,java.lang.Boolean>> patterns, java.lang.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