public class LikeUtil
extends java.lang.Object
implements java.io.Serializable
Constructor and Description |
---|
LikeUtil(java.lang.String pattern,
java.lang.Character escape,
boolean ignorecase)
Ctor.
|
Modifier and Type | Method and Description |
---|---|
boolean |
compare(java.lang.String compareString)
Execute the string.
|
void |
resetPattern(java.lang.String pattern)
Resets the search pattern.
|
public LikeUtil(java.lang.String pattern, java.lang.Character escape, boolean ignorecase)
pattern
- is the SQL-like pattern toescape
- is the escape characterignorecase
- is true to ignore the case, or false if notpublic boolean compare(java.lang.String compareString)
compareString
- is the string to comparepublic void resetPattern(java.lang.String pattern)
pattern
- is the new pattern to match against