Package jakarta.mail.search
Class IntegerComparisonTerm
- java.lang.Object
 - 
- jakarta.mail.search.SearchTerm
 - 
- jakarta.mail.search.ComparisonTerm
 - 
- jakarta.mail.search.IntegerComparisonTerm
 
 
 
 
- 
- All Implemented Interfaces:
 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 Modifier and Type Field Description protected intnumberThe number.- 
Fields inherited from class jakarta.mail.search.ComparisonTerm
comparison, EQ, GE, GT, LE, LT, NE 
 - 
 
- 
Constructor Summary
Constructors Modifier Constructor Description protectedIntegerComparisonTerm(int comparison, int number) 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)Equality comparison.intgetComparison()Return the type of comparison.intgetNumber()Return the number to compare with.inthashCode()Compute a hashCode for this object.protected booleanmatch(int i)- 
Methods inherited from class jakarta.mail.search.SearchTerm
match 
 - 
 
 - 
 
- 
- 
Method Detail
- 
getNumber
public int getNumber()
Return the number to compare with.- Returns:
 - the number
 
 
- 
getComparison
public int getComparison()
Return the type of comparison.- Returns:
 - the comparison type
 
 
- 
match
protected boolean match(int i)
 
- 
equals
public boolean equals(Object obj)
Equality comparison.- Overrides:
 equalsin classComparisonTerm
 
- 
hashCode
public int hashCode()
Compute a hashCode for this object.- Overrides:
 hashCodein classComparisonTerm
 
 - 
 
 -