com.sun.mail.imap
类 Utility

java.lang.Object
  继承者 com.sun.mail.imap.Utility

public final class Utility
extends Object

Holder for some static utility methods.

版本:
1.7, 07/05/04
作者:
John Mani, Bill Shannon

嵌套类摘要
static interface Utility.Condition
          This interface defines the test to be executed in toMessageSet().
 
方法摘要
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 UIDSet[] toUIDSet(Message[] msgs)
          Return UIDSets for the messages.
 
从类 java.lang.Object 继承的方法
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

方法详细信息

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.


toUIDSet

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



Copyright © 2013. All Rights Reserved.