| Modifier and Type | Class and Description |
|---|---|
| public static interface | Utility.Condition
This interface defines the test to be executed in
|
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static UIDSet[] | Returns: the UIDSet arraythe ResyncData rd)Make the ResyncData UIDSet available to IMAPProtocol, which is in a different package. |
| public static MessageSet[] | Returns: the MessageSet arraythe messages msgs, Utility.the condition to check condRun thru the given array of messages, apply the given Condition on each message and generate sets of contiguous sequence-numbers for the successful messages. |
| public static MessageSet[] | Returns: the MessageSet arraythe messages msgs, Utility.the condition to check condSort (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. |
| public static UIDSet[] |
| Utility | back to summary |
|---|---|
| private Utility() | |
| getResyncUIDSet | back to summary |
|---|---|
| public static UIDSet[] getResyncUIDSet(ResyncData rd) Make the ResyncData UIDSet available to IMAPProtocol, which is in a different package. Note that this class is not included in the public javadocs, thus "hiding" this method.
| |
| toMessageSet | back to summary |
|---|---|
| public static MessageSet[] toMessageSet(Message[] msgs, Utility. 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. If a message in the given array is found to be expunged, it is ignored. ASSERT: Since this method uses and returns message sequence numbers, you should use this method only when holding the messageCacheLock.
| |
| toMessageSetSorted | back to summary |
|---|---|
| public static MessageSet[] toMessageSetSorted(Message[] msgs, Utility. 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. If a message in the given array is found to be expunged, it is ignored. ASSERT: Since this method uses and returns message sequence numbers, you should use this method only when holding the messageCacheLock.
| |
| toUIDSet | back to summary |
|---|---|
| public static UIDSet[] toUIDSet(Message[] msgs) Return UIDSets for the messages. Note that the UIDs must have already been fetched for the messages. | |
toMessageSet().
| Modifier and Type | Method and Description |
|---|---|
| public boolean |
| test | back to summary |
|---|---|
| public boolean test(IMAPMessage message) | |