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> collectionOfTextToMatch,
String pattern) |
static boolean |
matchesAny(Iterable<String> collectionOfTextToMatch,
String pattern) |
static boolean |
matchesAny(String[] collectionOfTextToMatch,
String pattern) |
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> collectionOfTextToMatch, String pattern)
public static boolean matchesAny(Iterable<String> collectionOfTextToMatch, String pattern)
Copyright © 2007–2014. All rights reserved.