- java.lang.Object
- 
- jakarta.mail.search.SearchTerm
- 
- jakarta.mail.search.ComparisonTerm
- 
- jakarta.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 SummaryFields Modifier and Type Field Description protected intnumberThe number.- 
Fields inherited from class jakarta.mail.search.ComparisonTermcomparison, EQ, GE, GT, LE, LT, NE
 
- 
 - 
Constructor SummaryConstructors Modifier Constructor Description protectedIntegerComparisonTerm(int comparison, int number)Constructor.
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.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)Match against the argumenti.- 
Methods inherited from class jakarta.mail.search.SearchTermmatch
 
- 
 
- 
- 
- 
Method Detail- 
getNumberpublic int getNumber() Return the number to compare with.- Returns:
- the number
 
 - 
getComparisonpublic int getComparison() Return the type of comparison.- Returns:
- the comparison type
 
 - 
matchprotected boolean match(int i) Match against the argumenti.- Parameters:
- i- the integer to match
- Returns:
- true if given integer matches this comparison; otherwise false
 
 - 
equalspublic boolean equals(java.lang.Object obj) Equality comparison.- Overrides:
- equalsin class- ComparisonTerm
 
 - 
hashCodepublic int hashCode() Compute a hashCode for this object.- Overrides:
- hashCodein class- ComparisonTerm
 
 
- 
 
-