DefaultRepresentativeFraction changes for revisions 24964:24965

The toScale() method added by this commit has been removed from Geotk/SIS. The change in equals(Object) implementation is mandated by the GeoAPI interface (it is almost a copy-and-paste from the GeoAPI javadoc), so it can not be different except for the omission of the useless (object != null) check.

Command line:

svn diff --extensions "--unified --ignore-space-change --ignore-all-space --ignore-eol-style" -r24964:24965 https://svn.osgeo.org/geotools/trunk/modules/library/metadata/src/main/java/org/geotools/metadata/iso/identification/RepresentativeFractionImpl.java
Revision 24964Revision 24965
    }
}

/**
 * Returns the scale in a form usable for computation.
 *
    }
}

public double toScale(){
    return doubleValue();
}
/**
 * Returns the scale in a form usable for computation.
 *
     * - a.equals(b) == b.equals(a)   (reflexivity)
     * - a.equals(b) implies (a.hashCode() == b.hashCode())
     */
    if (object!=null && object.getClass().equals(getClass())) {
        final RepresentativeFractionImpl that = (RepresentativeFractionImpl) object;
        return denominator == that.denominator;
    }
    return false;
}
     * - a.equals(b) == b.equals(a)   (reflexivity)
     * - a.equals(b) implies (a.hashCode() == b.hashCode())
     */
    if (object!=null && object instanceof RepresentativeFraction ){
        final RepresentativeFraction that = (RepresentativeFraction) object;
        return denominator == that.getDenominator();
    }
    return false;
}