public class LikePattern extends Object
Modifier and Type | Field and Description |
---|---|
static String |
DEFAULT_ESCAPE_STRING |
Constructor and Description |
---|
LikePattern() |
Modifier and Type | Method and Description |
---|---|
static boolean |
matches(String likePattern,
String escape,
CharSequence input) |
public static final String DEFAULT_ESCAPE_STRING
public static boolean matches(String likePattern, String escape, CharSequence input)
likePattern
- an SQL LIKE pattern including % and _ characters.escape
- SQL ESCAPE character, or empty string for no escaping.input
- string to be matched.Copyright © 2019. All rights reserved.