/** * The overriding of this method should ensure that the objects of this * class work correctly in a hashtable. * * @return The hash code of this object. */ @Override public int hashCode() { return mechanismType.hashCode(); } }
/** * The overriding of this method should ensure that the objects of this * class work correctly in a hashtable. * * @return The hash code of this object. */ @Override public int hashCode() { return pixelX.hashCode() ^ pixelY.hashCode() ^ resolution.hashCode() ^ charRows.hashCode() ^ charColumns.hashCode() ^ color.hashCode() ^ bitsPerPixel.hashCode() ^ charSets.hashCode() ^ encodingMethods.hashCode() ^ mimeTypes.hashCode(); }