Rule execution

This commit is contained in:
M66B
2019-01-17 21:41:00 +00:00
parent 699d1be7ec
commit 97c4d39a0f
10 changed files with 174 additions and 85 deletions

View File

@@ -21,13 +21,17 @@ package eu.faircode.email;
public class TupleRuleEx extends EntityRule {
public long account;
public String folderName;
public String accountName;
@Override
public boolean equals(Object obj) {
if (obj instanceof TupleRuleEx) {
TupleRuleEx other = (TupleRuleEx) obj;
return (super.equals(obj) &&
this.account == other.account);
this.account == other.account &&
(this.folderName == null ? other.folderName == null : this.folderName.equals(other.folderName)) &&
(this.accountName == null ? other.accountName == null : this.accountName.equals(other.accountName)));
} else
return false;
}