javax.mail.search
Class IntegerComparisonTerm

java.lang.Object
  extended by javax.mail.search.SearchTerm
      extended by javax.mail.search.ComparisonTerm
          extended by javax.mail.search.IntegerComparisonTerm
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
MessageNumberTerm, SizeTerm

public abstract class IntegerComparisonTerm
extends ComparisonTerm

A Term that provides comparisons for integers.

Version:
$Rev: 593593 $ $Date: 2007-11-09 12:04:20 -0500 (Fri, 09 Nov 2007) $
See Also:
Serialized Form

Field Summary
protected  int number
           
 
Fields inherited from class javax.mail.search.ComparisonTerm
comparison, EQ, GE, GT, LE, LT, NE
 
Constructor Summary
protected IntegerComparisonTerm(int comparison, int number)
           
 
Method Summary
 boolean equals(Object other)
           
 int getComparison()
           
 int getNumber()
           
 int hashCode()
           
protected  boolean match(int match)
           
 
Methods inherited from class javax.mail.search.SearchTerm
match
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

number

protected int number
Constructor Detail

IntegerComparisonTerm

protected IntegerComparisonTerm(int comparison,
                                int number)
Method Detail

getNumber

public int getNumber()

getComparison

public int getComparison()

match

protected boolean match(int match)

equals

public boolean equals(Object other)
Overrides:
equals in class ComparisonTerm

hashCode

public int hashCode()
Overrides:
hashCode in class ComparisonTerm


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