mirror of
https://github.com/moparisthebest/k-9
synced 2024-11-13 13:05:03 -05:00
35 lines
972 B
Java
35 lines
972 B
Java
|
package com.fsck.k9.activity;
|
||
|
|
||
|
import java.io.Serializable;
|
||
|
|
||
|
public class MessageReference implements Serializable
|
||
|
{
|
||
|
String accountUuid;
|
||
|
String folderName;
|
||
|
String uid;
|
||
|
|
||
|
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 = '" +
|
||
|
accountUuid
|
||
|
+ "', folderName = '" + folderName
|
||
|
+ "', uid = '" + uid
|
||
|
+ "'}";
|
||
|
}
|
||
|
}
|