Object
WildcardMatcher
Match text with a wildcards (called template) with any other text.
This matcher supports only one possible wildcard symbol which is '*'.
That way you don't need to worry to escape any symbols in your template like in case when using regexps.
For example given template "lol*lol":
- lolasdlol - match
- looooollol - does not match
Worst case complexity is O(n^m)
-
Nested Class Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionMatch given text against all templates and return resultboolean
Check if given text matches all templates.
-
Constructor Details
-
WildcardMatcher
-
WildcardMatcher
-
-
Method Details
-
matches
Check if given text matches all templates. -
match
Match given text against all templates and return result
-