< prev index next >

src/java.desktop/share/classes/javax/sound/sampled/FloatControl.java

Print this page

        

@@ -52,27 +52,27 @@
 public abstract class FloatControl extends Control {
 
     /**
      * The minimum supported value.
      */
-    private float minimum;
+    private final float minimum;
 
     /**
      * The maximum supported value.
      */
-    private float maximum;
+    private final float maximum;
 
     /**
      * The control's precision.
      */
-    private float precision;
+    private final float precision;
 
     /**
      * The smallest time increment in which a value change can be effected
      * during a value shift, in microseconds.
      */
-    private int updatePeriod;
+    private final int updatePeriod;
 
     /**
      * A label for the units in which the control values are expressed, such as
      * "dB" for decibels.
      */

@@ -332,10 +332,11 @@
     /**
      * Provides a string representation of the control.
      *
      * @return a string description
      */
+    @Override
     public String toString() {
         return new String(getType() + " with current value: " + getValue() + " " + units +
                           " (range: " + minimum + " - " + maximum + ")");
     }
 
< prev index next >