This documentation differs from the official API. Jadeite adds extra features to the API including: variable font sizes, constructions examples, placeholders for classes and methods, and auto-generated “See Also” links. Additionally it is missing some items found in standard Javadoc documentation, including: generics type information, “Deprecated” tags and comments, “See Also” links, along with other minor differences. Please send any questions or feedback to bam@cs.cmu.edu.


com.sun.mail.imap
class Utility

com.sun.mail.imap.Utility

public final class Utility
extends Object

Holder for some static utility methods.


Nested Class Summary
static interface

           This interface defines the test to be executed in toMessageSet().
 
Method Summary
static MessageSet[]

          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 UIDSet[]
toUIDSet(Message[] msgs)

          Return UIDSets for the messages.
 

Method Detail

toMessageSet

public 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. 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.

Parameters:
msgs
cond

toUIDSet

public static UIDSet[] toUIDSet(Message[] msgs)
Return UIDSets for the messages. Note that the UIDs must have already been fetched for the messages.

Parameters:
msgs


This documentation differs from the official API. Jadeite adds extra features to the API including: variable font sizes, constructions examples, placeholders for classes and methods, and auto-generated “See Also” links. Additionally it is missing some items found in standard Javadoc documentation, including: generics type information, “Deprecated” tags and comments, “See Also” links, along with other minor differences. Please send any questions or feedback to bam@cs.cmu.edu.
This page displays the Jadeite version of the documention. The official Sun™ documentation can be found here at http://java.sun.com/products/javamail/javadocs/index.html.