public abstract class StringTerm extends SearchTerm
Modifier and Type | Field and Description |
---|---|
protected boolean |
ignoreCase
Ignore case when comparing?
|
protected java.lang.String |
pattern
The pattern.
|
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 obj)
Equality comparison.
|
boolean |
getIgnoreCase()
Return true if we should ignore case when matching.
|
java.lang.String |
getPattern()
Return the string to match with.
|
int |
hashCode()
Compute a hashCode for this object.
|
protected boolean |
match(java.lang.String s) |
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 obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
Copyright © 2012 Oracle. All Rights Reserved.