Note that this class differs from the AddressTerm
class
in that this class does comparisons on address strings rather than
Address objects.
Modifier and Type | Field and Description |
---|---|
private static final long |
Access | Constructor and Description |
---|---|
protected |
Modifier and Type | Method and Description |
---|---|
public boolean | equals(Object
the reference object with which to compare. obj)Overrides jakarta. |
protected boolean |
serialVersionUID | back to summary |
---|---|
private static final long serialVersionUID |
AddressStringTerm | back to summary |
---|---|
protected AddressStringTerm(String pattern) Constructor.
|
equals | back to summary |
---|---|
public boolean equals(Object obj) Overrides jakarta. Equality comparison.
|
match | back to summary |
---|---|
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. 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.
|