2010-04-24 10:59:27 -04:00
|
|
|
package com.fsck.k9.activity;
|
|
|
|
|
|
|
|
import java.io.Serializable;
|
|
|
|
|
|
|
|
public class MessageReference implements Serializable
|
|
|
|
{
|
|
|
|
String accountUuid;
|
|
|
|
String folderName;
|
|
|
|
String uid;
|
2010-04-29 00:59:14 -04:00
|
|
|
|
2010-04-24 10:59:27 -04:00
|
|
|
public boolean equals(Object o)
|
|
|
|
{
|
|
|
|
if (o instanceof MessageReference == false)
|
|
|
|
{
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
MessageReference other = (MessageReference)o;
|
|
|
|
if ((accountUuid == other.accountUuid || (accountUuid != null && accountUuid.equals(other.accountUuid)))
|
|
|
|
&& (folderName == other.folderName || (folderName != null && folderName.equals(other.folderName)))
|
|
|
|
&& (uid == other.uid || (uid != null && uid.equals(other.uid))))
|
|
|
|
{
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
public String toString()
|
|
|
|
{
|
|
|
|
return "MessageReference{accountUuid = '" +
|
2010-04-29 00:59:14 -04:00
|
|
|
accountUuid
|
|
|
|
+ "', folderName = '" + folderName
|
|
|
|
+ "', uid = '" + uid
|
|
|
|
+ "'}";
|
2010-04-24 10:59:27 -04:00
|
|
|
}
|
|
|
|
}
|