⇒ Index (Frames) |  ⇒ Index (No Frames) |  ⇒ Package |  ⇒ Package Tree |  ⇒ Full Tree 
javax.mail.search

Class IntegerComparisonTerm

java.lang.Object
|
+--javax.mail.search.SearchTerm
   |
   +--javax.mail.search.ComparisonTerm
      |
      +--javax.mail.search.IntegerComparisonTerm

Known Direct Subclasses:
MessageNumberTerm, SizeTerm


public abstract class IntegerComparisonTerm
extends ComparisonTerm

This class implements comparisons for integers.
Author:

Field Summary

int

number

The number.

Constructor Summary

IntegerComparisonTerm(int comparison, int number)

Method Summary

boolean

equals(Object other)

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.

boolean

match(int i)

Field Details

number

protected int number

The number.

Constructor Details

IntegerComparisonTerm

protected IntegerComparisonTerm(int comparison, int number)

Parameters:
comparison
number

Method Details

equals

public boolean equals(Object other)

Equality comparison.

Parameters:
other

getComparison

public int getComparison()

Return the type of comparison.


getNumber

public int getNumber()

Return the number to compare with.


hashCode

public int hashCode()

Compute a hashCode for this object.


match

protected boolean match(int i)

Parameters:
i