public class UIDSet
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static UIDSet[] |
createUIDSets(long[] uids)
Convert an array of longs into an array of UIDSets
|
static UIDSet[] |
parseUIDSets(java.lang.String uids)
Parse a string in IMAP UID range format.
|
long |
size()
Count the total number of elements in a UIDSet
|
static long |
size(UIDSet[] uidset)
Count the total number of elements in an array of UIDSets.
|
static long[] |
toArray(UIDSet[] uidset)
Convert an array of UIDSets into a array of long UIDs.
|
static long[] |
toArray(UIDSet[] uidset,
long uidmax)
Convert an array of UIDSets into a array of long UIDs.
|
static java.lang.String |
toString(UIDSet[] uidset)
Convert an array of UIDSets into an IMAP sequence range.
|
public long size()
public static UIDSet[] createUIDSets(long[] uids)
uids
- the UIDspublic static UIDSet[] parseUIDSets(java.lang.String uids)
uids
- UID stringpublic static java.lang.String toString(UIDSet[] uidset)
uidset
- the UIDSetspublic static long[] toArray(UIDSet[] uidset)
uidset
- the UIDSetspublic static long[] toArray(UIDSet[] uidset, long uidmax)
uidset
- the UIDSetsuidmax
- maximum UIDpublic static long size(UIDSet[] uidset)
uidset
- the UIDSetsCopyright © 2010 - 2020 Adobe. All Rights Reserved