1
0
mirror of https://github.com/moparisthebest/davmail synced 2024-12-13 11:12:22 -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:
mguessan 2009-02-12 14:31:11 +00:00
parent 879d2b2e19
commit 247f656eea

View File

@ -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> {