public class LikePatternMatcher
extends java.lang.Object
Constructor and Description |
---|
LikePatternMatcher(java.lang.String pattern)
The pattern can contain the following wildcards
_ or ? for a single character match
% or * for 0 to any number of characters
|
Modifier and Type | Method and Description |
---|---|
boolean |
match(java.lang.String value) |
public LikePatternMatcher(java.lang.String pattern)
Duplicate wildcards are translated to a literal match to one wildcard (for example, ** is matched for the character *)
If the string has no wildcard at all, % is appended in front and at the end