Top Description Fields Constructors Methods
jakarta.mail.search

public final Class SizeTerm

extends IntegerComparisonTerm
Class Inheritance
Imports
jakarta.mail.Message

This class implements comparisons for Message sizes.
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
SizeTerm(int
the Comparison type
comparison
,
int
the size
size
)

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 size is equal, otherwise false
match
(Message
the size comparator is applied to this Message's size
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

SizeTermback to summary
public SizeTerm(int comparison, int size)

Constructor.

Parameters
comparison:int

the Comparison type

size:int

the size

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 size comparator is applied to this Message's size

Returns:boolean

true if the size is equal, otherwise false

Annotations
@Override