javax.mail.search
Class IntegerComparisonTerm

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

public abstract class IntegerComparisonTerm
extends ComparisonTerm

This class implements comparisons for integers.

Author:
Bill Shannon, John Mani
See Also:
Serialized Form

Field Summary
 
Fields inherited from class javax.mail.search.ComparisonTerm
EQ, GE, GT, LE, LT, NE
 
Method Summary
 boolean equals(java.lang.Object obj)
          Equality comparison.
 int getComparison()
          Return the type of comparison.
 int getNumber()
          Return the number to compare with.
 int hashCode()
          Compute a hashCode for this object.
 
Methods inherited from class javax.mail.search.SearchTerm
match
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getNumber

public int getNumber()
Return the number to compare with.


getComparison

public int getComparison()
Return the type of comparison.


equals

public boolean equals(java.lang.Object obj)
Equality comparison.

Overrides:
equals in class ComparisonTerm

hashCode

public int hashCode()
Compute a hashCode for this object.

Overrides:
hashCode in class ComparisonTerm