Home » apache-tomcat-6.0.26-src » javax » mail » search » [javadoc | source]
javax.mail.search
public final class: RecipientStringTerm [javadoc | source]
java.lang.Object
   javax.mail.search.SearchTerm
      javax.mail.search.StringTerm
         javax.mail.search.AddressStringTerm
            javax.mail.search.RecipientStringTerm

All Implemented Interfaces:
    Serializable

This class implements string comparisons for the Recipient Address headers.

Note that this class differs from the RecipientTerm class in that this class does comparisons on address strings rather than Address objects. The string comparisons are case-insensitive.

Fields inherited from javax.mail.search.StringTerm:
pattern,  ignoreCase
Constructor:
 public RecipientStringTerm(RecipientType type,
    String pattern) 
    Constructor.
    Parameters:
    type - the recipient type
    pattern - the address pattern to be compared.
Method from javax.mail.search.RecipientStringTerm Summary:
equals,   getRecipientType,   hashCode,   match
Methods from javax.mail.search.AddressStringTerm:
equals,   match
Methods from javax.mail.search.StringTerm:
equals,   getIgnoreCase,   getPattern,   hashCode,   match
Methods from javax.mail.search.SearchTerm:
match
Methods from java.lang.Object:
clone,   equals,   finalize,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from javax.mail.search.RecipientStringTerm Detail:
 public boolean equals(Object obj) 
    Equality comparison.
 public RecipientType getRecipientType() 
    Return the type of recipient to match with.
 public int hashCode() 
    Compute a hashCode for this object.
 public boolean match(Message msg) 
    Check whether the address specified in the constructor is a substring of the recipient address of this Message.