javax.mail.search
Class SizeTerm

java.lang.Object
  extended by javax.mail.search.SearchTerm
      extended by javax.mail.search.ComparisonTerm
          extended by javax.mail.search.IntegerComparisonTerm
              extended by javax.mail.search.SizeTerm
All Implemented Interfaces:
Serializable

public final class SizeTerm
extends IntegerComparisonTerm

Version:
$Rev: 421852 $ $Date: 2006-07-14 03:02:19 -0700 (Fri, 14 Jul 2006) $
See Also:
Serialized Form

Field Summary
 
Fields inherited from class javax.mail.search.IntegerComparisonTerm
number
 
Fields inherited from class javax.mail.search.ComparisonTerm
comparison, EQ, GE, GT, LE, LT, NE
 
Constructor Summary
SizeTerm(int comparison, int size)
           
 
Method Summary
 boolean match(Message message)
          Checks a matching criteria defined by the concrete subclass of this Term.
 
Methods inherited from class javax.mail.search.IntegerComparisonTerm
equals, getComparison, getNumber, hashCode, match
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SizeTerm

public SizeTerm(int comparison,
                int size)
Method Detail

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


Copyright © 2006 Apache Software Foundation. All Rights Reserved.