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(String pattern)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
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, match
match
protected 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
in class StringTerm
Copyright © 1996-2017, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.