public class UIDSet extends 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(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 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(String uids)
uids - UID stringpublic static 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 © 2019 JBoss by Red Hat. All rights reserved.