Top Description Fields Constructors Methods
jakarta.mail.search

public final Class MessageNumberTerm

extends IntegerComparisonTerm
Class Inheritance
Imports
jakarta.mail.Message

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

Field Summary

Modifier and TypeField and Description
private static final long
Inherited from jakarta.mail.search.IntegerComparisonTerm:
number

Constructor Summary

AccessConstructor and Description
public
MessageNumberTerm(int
the Message number
number
)

Constructor.

Method Summary

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

Overrides jakarta.mail.search.IntegerComparisonTerm.equals.

Equality comparison.
public boolean

Returns:

true if the match succeeds, otherwise false
match
(Message
the Message number is matched with this Message
msg
)

Implements abstract jakarta.mail.search.SearchTerm.match.

The match method.
Inherited from jakarta.mail.search.IntegerComparisonTerm:
getComparisongetNumberhashCodematch

Field Detail

serialVersionUIDback to summary
private static final long serialVersionUID

Hides jakarta.mail.search.IntegerComparisonTerm.serialVersionUID.

Constructor Detail

MessageNumberTermback to summary
public MessageNumberTerm(int number)

Constructor.

Parameters
number:int

the Message number

Method Detail

equalsback to summary
public boolean equals(Object obj)

Overrides jakarta.mail.search.IntegerComparisonTerm.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
matchback to summary
public boolean match(Message msg)

Implements abstract jakarta.mail.search.SearchTerm.match.

The match method.

Parameters
msg:Message

the Message number is matched with this Message

Returns:boolean

true if the match succeeds, otherwise false

Annotations
@Override