public class WildcardHelper extends Object
Constructor and Description |
---|
WildcardHelper() |
Modifier and Type | Method and Description |
---|---|
static boolean |
matchesWildcard(String comparee,
String patternWithWildcards)
Compare a given string (comparee) against a pattern that contains wildcards
and return true if it matches.
|
static String |
wildcardAsRegex(String patternWithWildcards)
converts a string containing wildcards (* and ?) into a valid regex
|
public static String wildcardAsRegex(String patternWithWildcards)
public static boolean matchesWildcard(String comparee, String patternWithWildcards)
comparee
- the string which should be tested against a pattern containing wildcardspatternWithWildcards
- the pattern containing wildcards (* and ?)Copyright © 2017 The Apache Software Foundation. All rights reserved.