public class WildcardMatcher extends Object
Constructor and Description |
---|
WildcardMatcher() |
Modifier and Type | Method and Description |
---|---|
static boolean |
matches(String text,
String pattern)
Performs a wildcard matching for the text and pattern provided.
|
static boolean |
matchesAny(Collection<String> patterns,
String text) |
static boolean |
matchesAny(Iterable<String> patterns,
String text) |
static boolean |
matchesAny(String[] patterns,
String text) |
public static boolean matches(String text, 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(Collection<String> patterns, String text)
Copyright © 2019. All rights reserved.