@Override public boolean equals(Object other) { if (this == other) { return true; } if (!(other instanceof UpdatedFlags)) { return false; } UpdatedFlags that = (UpdatedFlags) other; if (uid != that.uid) { return false; } if (modSeq != that.modSeq) { return false; } if (oldFlags != null ? !oldFlags.equals(that.oldFlags) : that.oldFlags != null) { return false; } return !(newFlags != null ? !newFlags.equals(that.newFlags) : that.newFlags != null); }
@Override public boolean equals(Object obj) { if (this == obj) { return true; } if (obj instanceof UnloadedMessageResult) { @SuppressWarnings("unchecked") UnloadedMessageResult<Id> that = (UnloadedMessageResult<Id>) obj; return (size == that.size) && (uid == that.uid) && (modSeq == that.modSeq) && exception.equals(that.exception) && internalDate.equals(that.internalDate) && flags.equals(that.flags); } return false; }