DefaultDigitalTransferOptions changes for revisions 24972:24973

Replacement of Number type by Double. This change has been forced by a GeoAPI change. Reverting this change causes a compilation failure, which is resolved by restoring the Double values as required by GeoAPI interfaces. So rewriting this contribution produces identical result.

Action: all contributions forced by changes in GeoAPI interfaces (mostly import statements and method signatures) have been rewritten from scratch by creating an empty Java class implementing the interface, clicking on the "Implement all abstract methods" contextual menu in NetBeans, removing the <? extends> part in parameterized type of collections, adding the synchronized keyword (for now) and finally adding the corresponding private fields. This action has been committed in the Apache SIS JDK7 branch at revision 1458238.

Command line:

svn diff --extensions "--unified --ignore-space-change --ignore-all-space --ignore-eol-style" -r24972:24973 https://svn.osgeo.org/geotools/trunk/modules/library/metadata/src/main/java/org/geotools/metadata/iso/distribution/DigitalTransferOptionsImpl.java
Revision 24972Revision 24973
 * The transfer size is &gt; 0.0.
 * Returns {@code null} if the transfer size is unknown.
 */
private Number transferSize;

/**
 * Information about online sources from which the resource can be obtained.
 * The transfer size is &gt; 0.0.
 * Returns {@code null} if the transfer size is unknown.
 */
private Double transferSize;

/**
 * Information about online sources from which the resource can be obtained.
 * The transfer size is &gt; 0.0.
 * Returns {@code null} if the transfer size is unknown.
 */
public Number getTransferSize() {
    return transferSize;
}
 * The transfer size is &gt; 0.0.
 * Returns {@code null} if the transfer size is unknown.
 */
public Double getTransferSize() {
    return transferSize;
}
 * Set an estimated size of a unit in the specified transfer format, expressed in megabytes.
 * The transfer size is &gt; 0.0.
 */
public synchronized void setTransferSize(final Number newValue) {
    checkWritePermission();
    transferSize = newValue;
}
 * Set an estimated size of a unit in the specified transfer format, expressed in megabytes.
 * The transfer size is &gt; 0.0.
 */
public synchronized void setTransferSize(final Double newValue) {
    checkWritePermission();
    transferSize = newValue;
}
protected void freeze() {
    super.freeze();
    unitsOfDistribution = (InternationalString) unmodifiable(unitsOfDistribution);
    transferSize        = (Number)              unmodifiable(transferSize);
    onLines             = (Collection)          unmodifiable(onLines);
    offLines            = (Medium)              unmodifiable(offLines);
}
protected void freeze() {
    super.freeze();
    unitsOfDistribution = (InternationalString) unmodifiable(unitsOfDistribution);
    transferSize        = (Double)              unmodifiable(transferSize);
    onLines             = (Collection)          unmodifiable(onLines);
    offLines            = (Medium)              unmodifiable(offLines);
}