/** * Checks whether two <code>Thumbnail</code> objects have equal values. * * @param anObject The object to compare this {@code Thumbnail} against */ @Override public boolean equals(final Object anObject) { if (this == anObject) { return true; } if (!(anObject instanceof Thumbnail)) { return false; } if (!super.equals(anObject)) { return false; } final Thumbnail thumbnail = (Thumbnail) anObject; if (attachmentId != thumbnail.attachmentId) { return false; } if (filename != null ? !filename.equals(thumbnail.filename) : thumbnail.filename != null) { return false; } if (mimeType != thumbnail.mimeType) { return false; } return true; }