public class StringSetMatcher extends Object
Constructor and Description |
---|
StringSetMatcher(String... set) |
Modifier and Type | Method and Description |
---|---|
void |
addPattern(String s) |
boolean |
allMatch(String[] set)
do all elements of 'set' match at least one of our patterns?
|
static StringSetMatcher |
getNonEmpty(String[] set) |
static boolean |
isMatch(String s,
StringSetMatcher includes,
StringSetMatcher excludes)
convenience method for matcher pairs containing of explicit excludes and
includes
|
static void |
main(String[] args) |
boolean |
matchesAll(String s)
does 's' match ALL of our patterns
|
boolean |
matchesAny(String s)
does 's' match at least one of our patterns
|
String |
toString() |
public StringSetMatcher(String... set)
public static boolean isMatch(String s, StringSetMatcher includes, StringSetMatcher excludes)
public static StringSetMatcher getNonEmpty(String[] set)
public void addPattern(String s)
public boolean matchesAny(String s)
public boolean matchesAll(String s)
public boolean allMatch(String[] set)
public static void main(String[] args)