public interface PatternMatcher
| Modifier and Type | Method and Description |
|---|---|
Pattern |
getPattern(String pattern)
Returns the pattern for its string representation.
|
boolean |
matches(String pattern,
String text)
Returns
true if the text matches the pattern. |
boolean |
matchesAny(List<String> patterns,
String text)
Returns
true if the text matches any of the patterns. |
void |
validatePattern(String pattern)
Validates the pattern.
|
void validatePattern(String pattern)
pattern - the string representation of the pattern.Pattern getPattern(String pattern)
pattern - the string representation of the pattern.boolean matches(String pattern, String text)
true if the text matches the pattern.pattern - the pattern.text - the text.true if the text matches the pattern.Copyright © 2016–2018 Softelnet. All rights reserved.