public abstract class StringTerm extends SearchTerm
Modifier and Type | Field and Description |
---|---|
protected boolean |
ignoreCase
Ignore case when comparing?
|
protected String |
pattern
The pattern.
|
Modifier | Constructor and Description |
---|---|
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.
|
Modifier and Type | Method and Description |
---|---|
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) |
match
protected 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 © 1996-2017, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.