public abstract class StringTerm extends SearchTerm
Modifier and Type | Field and Description |
---|---|
protected boolean |
ignoreCase
Whether to ignore case during comparison.
|
protected java.lang.String |
pattern
The pattern to match.
|
Modifier | Constructor and Description |
---|---|
protected |
StringTerm(java.lang.String pattern) |
protected |
StringTerm(java.lang.String pattern,
boolean ignoreCase) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object other) |
boolean |
getIgnoreCase()
Indicates whether to ignore case during comparison.
|
java.lang.String |
getPattern()
Returns the pattern to match.
|
int |
hashCode() |
protected boolean |
match(java.lang.String s)
Returns true if the specified pattern is a substring of the given string.
|
match
protected java.lang.String pattern
protected boolean ignoreCase
protected StringTerm(java.lang.String pattern)
protected StringTerm(java.lang.String pattern, boolean ignoreCase)
public java.lang.String getPattern()
public boolean getIgnoreCase()
protected boolean match(java.lang.String s)
public boolean equals(java.lang.Object other)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object