javax.mail.search
Class IntegerComparisonTerm


java.lang.Object

  |

  +--javax.mail.search.SearchTerm

        |

        +--javax.mail.search.ComparisonTerm

              |

              +--javax.mail.search.IntegerComparisonTerm

Direct Known Subclasses:
MessageNumberTerm, SizeTerm

public abstract class IntegerComparisonTerm
extends ComparisonTerm

This class implements comparisons for integers.


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
 int getComparison()
          Return the type of comparison.
 int getNumber()
          Return the number to compare with.
protected  boolean match(int i)
           
 
Methods inherited from class javax.mail.search.SearchTerm
match
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, 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()
Return the number to compare with.

getComparison


public int getComparison()
Return the type of comparison.

match


protected boolean match(int i)