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