javax.mail.search
Class RecipientStringTerm

java.lang.Object
  extended by javax.mail.search.SearchTerm
      extended by javax.mail.search.StringTerm
          extended by javax.mail.search.AddressStringTerm
              extended by javax.mail.search.RecipientStringTerm
All Implemented Interfaces:
Serializable

public final class RecipientStringTerm
extends AddressStringTerm

Version:
$Rev: 593593 $ $Date: 2007-11-09 12:04:20 -0500 (Fri, 09 Nov 2007) $
See Also:
Serialized Form

Field Summary
 
Fields inherited from class javax.mail.search.StringTerm
ignoreCase, pattern
 
Constructor Summary
RecipientStringTerm(Message.RecipientType type, String pattern)
           
 
Method Summary
 boolean equals(Object other)
           
 Message.RecipientType getRecipientType()
           
 int hashCode()
           
 boolean match(Message message)
          Checks a matching criteria defined by the concrete subclass of this Term.
 
Methods inherited from class javax.mail.search.AddressStringTerm
match
 
Methods inherited from class javax.mail.search.StringTerm
getIgnoreCase, getPattern, match
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RecipientStringTerm

public RecipientStringTerm(Message.RecipientType type,
                           String pattern)
Method Detail

getRecipientType

public Message.RecipientType getRecipientType()

match

public boolean match(Message message)
Description copied from class: SearchTerm
Checks a matching criteria defined by the concrete subclass of this Term.

Specified by:
match in class SearchTerm
Parameters:
message - the message to apply the matching criteria to
Returns:
true if the matching criteria is met

equals

public boolean equals(Object other)
Overrides:
equals in class StringTerm

hashCode

public int hashCode()
Overrides:
hashCode in class StringTerm


Copyright © 2003-2009 The Apache Software Foundation. All Rights Reserved.