mirror of
https://github.com/moparisthebest/davmail
synced 2024-11-04 16:35:01 -05:00
Implement DavMail equals
git-svn-id: http://svn.code.sf.net/p/davmail/code/trunk@356 3d1905a2-6b24-0410-a738-b14d5a86fcbd
This commit is contained in:
parent
879d2b2e19
commit
247f656eea
@ -1102,6 +1102,11 @@ public class ExchangeSession {
|
|||||||
public int compareTo(Object message) {
|
public int compareTo(Object message) {
|
||||||
return (int) (getUidAsLong() - ((Message) message).getUidAsLong());
|
return (int) (getUidAsLong() - ((Message) message).getUidAsLong());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public boolean equals(Object message) {
|
||||||
|
return message instanceof Message && getUidAsLong() == ((Message) message).getUidAsLong();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public class MessageList extends ArrayList<Message> {
|
public class MessageList extends ArrayList<Message> {
|
||||||
|
Loading…
Reference in New Issue
Block a user