MCPcopy Create free account
hub / github.com/M66B/FairEmail / toArray

Method toArray

app/src/main/java/com/sun/mail/imap/protocol/UIDSet.java:159–170  ·  view source on GitHub ↗

Convert an array of UIDSets into a array of long UIDs. @param uidset the UIDSets @return arrray of UIDs @since JavaMail 1.5.1

(UIDSet[] uidset)

Source from the content-addressed store, hash-verified

157 * @since JavaMail 1.5.1
158 */
159 public static long[] toArray(UIDSet[] uidset) {
160 //return toArray(uidset, -1);
161 if (uidset == null)
162 return null;
163 long[] uids = new long[(int)UIDSet.size(uidset)];
164 int i = 0;
165 for (UIDSet u : uidset) {
166 for (long n = u.start; n <= u.end; n++)
167 uids[i++] = n;
168 }
169 return uids;
170 }
171
172 /**
173 * Convert an array of UIDSets into a array of long UIDs.

Callers 15

openMethod · 0.95
copymoveUIDMessagesMethod · 0.95
handleResponseMethod · 0.95
convertMethod · 0.80
monitorAccountMethod · 0.80
configureMethod · 0.80
onChangedMethod · 0.80
onSendMethod · 0.80
getChannelIdsMethod · 0.80
onCreateDialogMethod · 0.80
applySuggestionsMethod · 0.80
insertMethod · 0.80

Calls 1

sizeMethod · 0.95

Tested by

no test coverage detected