public abstract class AddressStringTerm extends StringTerm
Note that this class differs from the AddressTerm
class
in that this class does comparisons on address strings rather than
Address objects.
ignoreCase, pattern
Modifier | Constructor and Description |
---|---|
protected |
AddressStringTerm(java.lang.String pattern)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj)
Equality comparison.
|
protected boolean |
match(Address a)
Check whether the address pattern specified in the constructor is
a substring of the string representation of the given Address
object.
|
getIgnoreCase, getPattern, hashCode, match
match
protected AddressStringTerm(java.lang.String pattern)
pattern
- the address pattern to be compared.protected boolean match(Address a)
Note that if the string representation of the given Address object contains charset or transfer encodings, the encodings must be accounted for, during the match process.
a
- The comparison is applied to this Address object.public boolean equals(java.lang.Object obj)
equals
in class StringTerm