@Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        long temp;
        temp = Double.doubleToLongBits(apertureValue);
        result = prime * result + (int) (temp ^ (temp >>> 32));
        result = prime * result + ((autoFocus == null) ? 0 : autoFocus.hashCode());
        result = prime * result + ((backLight == null) ? 0 : backLight.hashCode());
        temp = Double.doubleToLongBits(brightnessValue);
        result = prime * result + (int) (temp ^ (temp >>> 32));
        result = prime * result + cfaPattern;
        result = prime * result + ((exifVersion == null) ? 0 : exifVersion.hashCode());
        temp = Double.doubleToLongBits(exposeBiasValue);
        result = prime * result + (int) (temp ^ (temp >>> 32));
        temp = Double.doubleToLongBits(exposureIndex);
        result = prime * result + (int) (temp ^ (temp >>> 32));
        result = prime * result + ((exposureProgram == null) ? 0 : exposureProgram.hashCode());
        temp = Double.doubleToLongBits(exposureTime);
        result = prime * result + (int) (temp ^ (temp >>> 32));
        temp = Double.doubleToLongBits(fNumber);
        result = prime * result + (int) (temp ^ (temp >>> 32));
        result = prime * result + ((flash == null) ? 0 : flash.hashCode());
        temp = Double.doubleToLongBits(flashEnergy);
        result = prime * result + (int) (temp ^ (temp >>> 32));
        temp = Double.doubleToLongBits(focalLength);
        result = prime * result + (int) (temp ^ (temp >>> 32));
        result = prime * result + isoSpeedRatings;
        result = prime * result + ((lightSource == null) ? 0 : lightSource.hashCode());
        temp = Double.doubleToLongBits(maxApertureValue);
        result = prime * result + (int) (temp ^ (temp >>> 32));
        result = prime * result + ((meteringMode == null) ? 0 : meteringMode.hashCode());
        temp = Double.doubleToLongBits(oECF);
        result = prime * result + (int) (temp ^ (temp >>> 32));
        result = prime * result + ((sensingMode == null) ? 0 : sensingMode.hashCode());
        temp = Double.doubleToLongBits(shutterSpeedValue);
        result = prime * result + (int) (temp ^ (temp >>> 32));
        result = prime * result + ((spectralSensitivity == null) ? 0 : spectralSensitivity.hashCode());
        temp = Double.doubleToLongBits(subjectDistance);
        result = prime * result + (int) (temp ^ (temp >>> 32));
        temp = Double.doubleToLongBits(xPrintAspectRatio);
        result = prime * result + (int) (temp ^ (temp >>> 32));
        temp = Double.doubleToLongBits(yPrintAspectRatio);
        result = prime * result + (int) (temp ^ (temp >>> 32));
        return result;
    }