# Uses of Interface
com.sun.mail.imap.Utility.Condition

Packages that use Utility.Condition
Package
Description
com.sun.mail.imap
An IMAP protocol provider for the Jakarta Mail API that provides access to an IMAP message store.

## Uses of Utility.Condition in com.sun.mail.imap

Classes in com.sun.mail.imap that implement Utility.Condition
Modifier and Type
Class
Description
`static class`
`IMAPMessage.FetchProfileCondition`
This class implements the test to be done on each message in the folder.
Methods in com.sun.mail.imap with parameters of type Utility.Condition
Modifier and Type
Method
Description
`static MessageSet[]`
Utility.`toMessageSet(Message[] msgs, Utility.Condition cond)`
Run thru the given array of messages, apply the given Condition on each message and generate sets of contiguous sequence-numbers for the successful messages.
`static MessageSet[]`
Utility.`toMessageSetSorted(Message[] msgs, Utility.Condition cond)`
Sort (a copy of) the given array of messages and then run thru the sorted array of messages, apply the given Condition on each message and generate sets of contiguous sequence-numbers for the successful messages.