public class WildcardMatcher
extends java.lang.Object
Constructor and Description |
---|
WildcardMatcher() |
Modifier and Type | Method and Description |
---|---|
static boolean |
matches(java.lang.String text,
java.lang.String pattern)
Performs a wildcard matching for the text and pattern provided.
|
static boolean |
matchesAny(java.util.Collection<java.lang.String> patterns,
java.lang.String text) |
static boolean |
matchesAny(java.lang.Iterable<java.lang.String> patterns,
java.lang.String text) |
static boolean |
matchesAny(java.lang.String[] patterns,
java.lang.String text) |
public static boolean matches(java.lang.String text, java.lang.String pattern)
text
- the text to be tested for matches.pattern
- the pattern to be matched for. This can contain the wildcard
character '*' (asterisk).public static boolean matchesAny(java.util.Collection<java.lang.String> patterns, java.lang.String text)
public static boolean matchesAny(java.lang.Iterable<java.lang.String> patterns, java.lang.String text)
public static boolean matchesAny(java.lang.String[] patterns, java.lang.String text)