Top Description Fields Constructors Methods
jakarta.mail.search

public abstract Class IntegerComparisonTerm

extends ComparisonTerm
Class Inheritance
Known Direct Subclasses
jakarta.mail.search.MessageNumberTerm, jakarta.mail.search.SizeTerm

This class implements comparisons for integers.
Authors
Bill Shannon, John Mani

Field Summary

Modifier and TypeField and Description
protected int
number

The number.

private static final long
Inherited from jakarta.mail.search.ComparisonTerm:
comparisonEQGEGTLELTNE

Constructor Summary

AccessConstructor and Description
protected
IntegerComparisonTerm(int comparison, int number)

Method Summary

Modifier and TypeMethod and Description
public boolean
equals(Object
the reference object with which to compare.
obj
)

Overrides jakarta.mail.search.ComparisonTerm.equals.

Equality comparison.
public int

Returns:

the comparison type
getComparison
()

Return the type of comparison.

public int

Returns:

the number
getNumber
()

Return the number to compare with.

public int
hashCode()

Overrides jakarta.mail.search.ComparisonTerm.hashCode.

Compute a hashCode for this object.
protected boolean
match(int i)

Field Detail

numberback to summary
protected int number

The number.

serialVersionUIDback to summary
private static final long serialVersionUID

Hides jakarta.mail.search.ComparisonTerm.serialVersionUID.

Constructor Detail

IntegerComparisonTermback to summary
protected IntegerComparisonTerm(int comparison, int number)

Method Detail

equalsback to summary
public boolean equals(Object obj)

Overrides jakarta.mail.search.ComparisonTerm.equals.

Equality comparison.

Parameters
obj:Object

Doc from java.lang.Object.equals.

the reference object with which to compare.

Returns:boolean

Doc from java.lang.Object.equals.

true if this object is the same as the obj argument; false otherwise.

Annotations
@Override
getComparisonback to summary
public int getComparison()

Return the type of comparison.

Returns:int

the comparison type

getNumberback to summary
public int getNumber()

Return the number to compare with.

Returns:int

the number

hashCodeback to summary
public int hashCode()

Overrides jakarta.mail.search.ComparisonTerm.hashCode.

Compute a hashCode for this object.

Returns:int

Doc from java.lang.Object.hashCode.

a hash code value for this object.

Annotations
@Override
matchback to summary
protected boolean match(int i)