Name
AndTerm
Synopsis
The AndTerm
class provides a
match()
method that returns
true
only if the two SearchTerms
also evaluate to true
.
public final class AndTerm extends SearchTerm { // Public Constructors public AndTerm( SearchTerm[] t); public AndTerm( 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.