com.sun.mail.imap.protocol
Class UIDSet
java.lang.Object
com.sun.mail.imap.protocol.UIDSet
public class UIDSet
- extends java.lang.Object
This class holds the 'start' and 'end' for a range of UIDs.
Just like MessageSet except using long instead of int.
Method Summary |
static UIDSet[] |
createUIDSets(long[] msgs)
|
long |
size()
Count the total number of elements in a UIDSet |
static long |
size(UIDSet[] msgsets)
|
static java.lang.String |
toString(UIDSet[] msgsets)
Convert an array of UIDSets into an IMAP sequence range |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
start
public long start
end
public long end
UIDSet
public UIDSet()
UIDSet
public UIDSet(long start,
long end)
size
public long size()
- Count the total number of elements in a UIDSet
createUIDSets
public static UIDSet[] createUIDSets(long[] msgs)
toString
public static java.lang.String toString(UIDSet[] msgsets)
- Convert an array of UIDSets into an IMAP sequence range
size
public static long size(UIDSet[] msgsets)
Copyright © 2010 Sun Microsystems, Inc.. All Rights Reserved.