private boolean hasKeyWithDifferentValue(Map<MailboxACL.EntryKey, MailboxACL.Rfc4314Rights> oldEntries, Map.Entry<MailboxACL.EntryKey, MailboxACL.Rfc4314Rights> entry) { return oldEntries.containsKey(entry.getKey()) && !oldEntries.get(entry.getKey()).equals(entry.getValue()); }
@Override public boolean equals(Object o) { if (o instanceof MyRightsResponse) { MyRightsResponse other = (MyRightsResponse) o; return (this.myRights == other.myRights || (this.myRights != null && this.myRights.equals(other.myRights))) && (this.mailboxName == other.mailboxName || (this.mailboxName != null && this.mailboxName.equals(other.mailboxName))) ; } return false; }