Name
AddressStringTerm
Synopsis
An abstract class implementing comparisons against addresses based on
string comparisons. The pattern specified in the constructor is
used by the match()
method, which returns
true
if the pattern is a substring of the string
representation of the Address
object passed to the
match()
method. Character set encoding differences
should be accounted for.
public abstract class AddressStringTerm extends StringTerm { // Protected Constructors protected AddressStringTerm( String pattern); // Public Methods Overriding StringTerm public boolean equals( Object obj); // 1.2 // Protected Instance Methods protected boolean match( Address a); }
Subclasses
FromStringTerm
, RecipientStringTerm
Get Java Enterprise in a Nutshell, Second Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.