@Override public boolean equals(Object o) { if (this == o) return true; if (!(o instanceof RemoveMailboxDataMessage)) return false; RemoveMailboxDataMessage that = (RemoveMailboxDataMessage) o; return !(data != null ? !data.equals(that.data) : that.data != null); }