public final class Utility extends Object
Modifier and Type | Class and Description |
---|---|
static interface |
Utility.Condition
This interface defines the test to be executed in
toMessageSet() . |
Modifier and Type | Method and Description |
---|---|
static UIDSet[] |
getResyncUIDSet(ResyncData rd)
Make the ResyncData UIDSet available to IMAPProtocol,
which is in a different package.
|
static MessageSet[] |
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[] |
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.
|
static UIDSet[] |
toUIDSet(Message[] msgs)
Return UIDSets for the messages.
|
public static MessageSet[] toMessageSet(Message[] msgs, Utility.Condition cond)
msgs
- the messagescond
- the condition to checkpublic static MessageSet[] toMessageSetSorted(Message[] msgs, Utility.Condition cond)
msgs
- the messagescond
- the condition to checkpublic static UIDSet[] toUIDSet(Message[] msgs)
msgs
- the messagespublic static UIDSet[] getResyncUIDSet(ResyncData rd)
rd
- the ResyncDataCopyright © 2019 JBoss by Red Hat. All rights reserved.