sis-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From desruisse...@apache.org
Subject svn commit: r1627563 - in /sis/branches/JDK8/core/sis-metadata/src/main/java/org/apache/sis/metadata/iso/content: DefaultBand.java DefaultSampleDimension.java
Date Thu, 25 Sep 2014 15:57:06 GMT
Author: desruisseaux
Date: Thu Sep 25 15:57:06 2014
New Revision: 1627563

URL: http://svn.apache.org/r1627563
Log:
Reordering of some properties. No significant code change in this commit.

Modified:
    sis/branches/JDK8/core/sis-metadata/src/main/java/org/apache/sis/metadata/iso/content/DefaultBand.java
    sis/branches/JDK8/core/sis-metadata/src/main/java/org/apache/sis/metadata/iso/content/DefaultSampleDimension.java

Modified: sis/branches/JDK8/core/sis-metadata/src/main/java/org/apache/sis/metadata/iso/content/DefaultBand.java
URL: http://svn.apache.org/viewvc/sis/branches/JDK8/core/sis-metadata/src/main/java/org/apache/sis/metadata/iso/content/DefaultBand.java?rev=1627563&r1=1627562&r2=1627563&view=diff
==============================================================================
--- sis/branches/JDK8/core/sis-metadata/src/main/java/org/apache/sis/metadata/iso/content/DefaultBand.java
[UTF-8] (original)
+++ sis/branches/JDK8/core/sis-metadata/src/main/java/org/apache/sis/metadata/iso/content/DefaultBand.java
[UTF-8] Thu Sep 25 15:57:06 2014
@@ -178,59 +178,59 @@ public class DefaultBand extends Default
     }
 
     /**
-     * Returns the longest wavelength that the sensor is capable of collecting within a designated
band.
-     * The units of measurement is given by {@link #getUnits()}.
+     * Returns the shortest wavelength that the sensor is capable of collecting within a
designated band.
+     * The units of measurement is given by {@link #getBoundUnit()}.
      *
-     * @return Longest wavelength that the sensor is capable of collecting within a designated
band,
+     * @return Shortest wavelength that the sensor is capable of collecting within a designated
band,
      *         or {@code null} if unspecified.
      *
      * @since 0.5
      */
     @Override
     @ValueRange(minimum = 0)
-/// @XmlElement(name = "boundMax")
-    public Double getBoundMax() {
-        return boundMax;
+/// @XmlElement(name = "boundMin")
+    public Double getBoundMin() {
+        return boundMin;
     }
 
     /**
-     * Sets the longest wavelength that the sensor is capable of collecting within a designated
band.
+     * Sets the shortest wavelength that the sensor is capable of collecting within a designated
band.
      *
-     * @param newValue The new longest wavelength.
+     * @param newValue The new shortest wavelength.
      *
      * @since 0.5
      */
-    public void setBoundMax(final Double newValue) {
+    public void setBoundMin(final Double newValue) {
         checkWritePermission();
-        boundMax = newValue;
+        boundMin = newValue;
     }
 
     /**
-     * Returns the shortest wavelength that the sensor is capable of collecting within a
designated band.
-     * The units of measurement is given by {@link #getBoundUnit()}.
+     * Returns the longest wavelength that the sensor is capable of collecting within a designated
band.
+     * The units of measurement is given by {@link #getUnits()}.
      *
-     * @return Shortest wavelength that the sensor is capable of collecting within a designated
band,
+     * @return Longest wavelength that the sensor is capable of collecting within a designated
band,
      *         or {@code null} if unspecified.
      *
      * @since 0.5
      */
     @Override
     @ValueRange(minimum = 0)
-/// @XmlElement(name = "boundMin")
-    public Double getBoundMin() {
-        return boundMin;
+/// @XmlElement(name = "boundMax")
+    public Double getBoundMax() {
+        return boundMax;
     }
 
     /**
-     * Sets the shortest wavelength that the sensor is capable of collecting within a designated
band.
+     * Sets the longest wavelength that the sensor is capable of collecting within a designated
band.
      *
-     * @param newValue The new shortest wavelength.
+     * @param newValue The new longest wavelength.
      *
      * @since 0.5
      */
-    public void setBoundMin(final Double newValue) {
+    public void setBoundMax(final Double newValue) {
         checkWritePermission();
-        boundMin = newValue;
+        boundMax = newValue;
     }
 
     /**

Modified: sis/branches/JDK8/core/sis-metadata/src/main/java/org/apache/sis/metadata/iso/content/DefaultSampleDimension.java
URL: http://svn.apache.org/viewvc/sis/branches/JDK8/core/sis-metadata/src/main/java/org/apache/sis/metadata/iso/content/DefaultSampleDimension.java?rev=1627563&r1=1627562&r2=1627563&view=diff
==============================================================================
--- sis/branches/JDK8/core/sis-metadata/src/main/java/org/apache/sis/metadata/iso/content/DefaultSampleDimension.java
[UTF-8] (original)
+++ sis/branches/JDK8/core/sis-metadata/src/main/java/org/apache/sis/metadata/iso/content/DefaultSampleDimension.java
[UTF-8] Thu Sep 25 15:57:06 2014
@@ -335,6 +335,27 @@ public class DefaultSampleDimension exte
     }
 
     /**
+     * Returns the physical value corresponding to a cell value of zero.
+     *
+     * @return The physical value corresponding to a cell value of zero, or {@code null}
if none.
+     */
+    @Override
+/// @XmlElement(name = "offset")
+    public Double getOffset() {
+        return offset;
+    }
+
+    /**
+     * Sets the physical value corresponding to a cell value of zero.
+     *
+     * @param newValue The new physical value corresponding to a cell value of zero, or {@code
null} if none..
+     */
+    public void setOffset(final Double newValue) {
+        checkWritePermission();
+        offset = newValue;
+    }
+
+    /**
      * Returns the maximum number of significant bits in the uncompressed representation
      * for the value in each band of each pixel.
      *
@@ -360,27 +381,6 @@ public class DefaultSampleDimension exte
     }
 
     /**
-     * Returns the physical value corresponding to a cell value of zero.
-     *
-     * @return The physical value corresponding to a cell value of zero, or {@code null}
if none.
-     */
-    @Override
-/// @XmlElement(name = "offset")
-    public Double getOffset() {
-        return offset;
-    }
-
-    /**
-     * Sets the physical value corresponding to a cell value of zero.
-     *
-     * @param newValue The new physical value corresponding to a cell value of zero, or {@code
null} if none..
-     */
-    public void setOffset(final Double newValue) {
-        checkWritePermission();
-        offset = newValue;
-    }
-
-    /**
      * Returns type of other attribute description.
      *
      * @return Type of other attribute description, or {@code null} if none.



Mime
View raw message