public abstract class StringTerm extends SearchTerm
| 限定符和类型 | 字段和说明 |
|---|---|
protected boolean |
ignoreCase
Ignore case when comparing?
|
protected String |
pattern
The pattern.
|
| 限定符 | 构造器和说明 |
|---|---|
protected |
StringTerm(String pattern)
Construct a StringTerm with the given pattern.
|
protected |
StringTerm(String pattern,
boolean ignoreCase)
Construct a StringTerm with the given pattern and ignoreCase flag.
|
| 限定符和类型 | 方法和说明 |
|---|---|
boolean |
equals(Object obj)
Equality comparison.
|
boolean |
getIgnoreCase()
Return true if we should ignore case when matching.
|
String |
getPattern()
Return the string to match with.
|
int |
hashCode()
Compute a hashCode for this object.
|
protected boolean |
match(String s) |
matchprotected String pattern
protected boolean ignoreCase
protected StringTerm(String pattern)
pattern - the patternprotected StringTerm(String pattern, boolean ignoreCase)
pattern - the patternignoreCase - should we ignore case?Copyright © 2021 Oracle. All rights reserved.