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| 限定符 | 构造器和说明 |
|---|---|
protected |
AddressStringTerm(String pattern)
Constructor.
|
| 限定符和类型 | 方法和说明 |
|---|---|
boolean |
equals(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, matchmatchprotected AddressStringTerm(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(Object obj)
equals 在类中 StringTermCopyright © 2021 Oracle. All rights reserved.