Name

OrTerm

Synopsis

This class combines two terms, returning true if one of the constituent terms returns true.

                  
public final class OrTerm extends SearchTerm {
// Public Constructors
   public OrTerm( SearchTerm[] t);  
   public OrTerm( SearchTerm t1, SearchTerm t2);  
// Public Instance Methods
   public SearchTerm[] getTerms();  
// Public Methods Overriding SearchTerm
   public boolean match( javax.mail.Message msg);  
// Public Methods Overriding Object
   public boolean equals( Object obj);                           // 1.2
   public int hashCode();                                        // 1.2
                  // Protected Instance Fields
   protected SearchTerm[] terms;  
}

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.