javax.mail.search
Class MessageNumberTerm

java.lang.Object
  extended byjavax.mail.search.SearchTerm
      extended byjavax.mail.search.ComparisonTerm
          extended byjavax.mail.search.IntegerComparisonTerm
              extended byjavax.mail.search.MessageNumberTerm
All Implemented Interfaces:
java.io.Serializable

public final class MessageNumberTerm
extends IntegerComparisonTerm

Version:
$Rev: 126550 $ $Date: 2005-01-26 23:27:45 +0100 (Wed, 26 Jan 2005) $
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
MessageNumberTerm(int number)
           
 
Method Summary
 boolean equals(java.lang.Object other)
           
 boolean match(Message message)
          Checks a matching criteria defined by the concrete subclass of this Term.
 
Methods inherited from class javax.mail.search.IntegerComparisonTerm
getComparison, getNumber, hashCode, match
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MessageNumberTerm

public MessageNumberTerm(int number)
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

equals

public boolean equals(java.lang.Object other)
Overrides:
equals in class IntegerComparisonTerm


Copyright © {inceptionYear}-2007 null. All Rights Reserved.