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

Method compare

app/src/main/java/eu/faircode/email/Core.java:4169–4176  ·  view source on GitHub ↗
(Message m1, Message m2)

Source from the content-addressed store, hash-verified

4167 // Sorting on date/time would be better, but requires fetching the headers
4168 Arrays.sort(imessages, new Comparator<Message>() {
4169 @Override
4170 public int compare(Message m1, Message m2) {
4171 try {
4172 return Long.compare(ifolder.getUID(m1), ifolder.getUID(m2));
4173 } catch (MessagingException ex) {
4174 return 0;
4175 }
4176 }
4177 });
4178
4179 List<Message> deleted = new ArrayList<>();

Callers 7

TESTFunction · 0.45
HasPrefixStringFunction · 0.45
HasSuffixStringFunction · 0.45
IsPathInFieldMaskMethod · 0.45
IsIgnoredMethod · 0.45

Calls 1

getUIDMethod · 0.65

Tested by 3

TESTFunction · 0.36
IsIgnoredMethod · 0.36