Package eu.svjatoslav.commons.string
Class GlobMatcher
java.lang.Object
eu.svjatoslav.commons.string.GlobMatcher
GlobMatcher - class for matching strings against wildcard expressions.
Wildcard expressions: * -- corresponds to any amount of characters. ? -- corresponds to any single character.
-
Constructor Summary
-
Method Summary
-
Constructor Details
-
GlobMatcher
public GlobMatcher()
-
-
Method Details
-
match
Test input string against wildcard expression. * -- corresponds to any amount of characters. ? -- corresponds to any single character.
- Parameters:
inputString
- input stringwildcardExpression
- wildcard expression- Returns:
true
if input string matches input pattern
-