javax.mail.search
Class OrTerm

java.lang.Object
  extended by javax.mail.search.SearchTerm
      extended by javax.mail.search.OrTerm
All Implemented Interfaces:
Serializable

public final class OrTerm
extends SearchTerm

Version:
$Rev: 467553 $ $Date: 2006-10-25 00:01:51 -0400 (Wed, 25 Oct 2006) $
See Also:
Serialized Form

Field Summary
protected  SearchTerm[] terms
           
 
Constructor Summary
OrTerm(SearchTerm[] terms)
           
OrTerm(SearchTerm a, SearchTerm b)
           
 
Method Summary
 boolean equals(Object other)
           
 SearchTerm[] getTerms()
           
 int hashCode()
           
 boolean match(Message message)
          Checks a matching criteria defined by the concrete subclass of this Term.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

terms

protected SearchTerm[] terms
Constructor Detail

OrTerm

public OrTerm(SearchTerm a,
              SearchTerm b)

OrTerm

public OrTerm(SearchTerm[] terms)
Method Detail

getTerms

public SearchTerm[] getTerms()

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 Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object


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