commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From roxspr...@apache.org
Subject cvs commit: jakarta-commons/cli/src/java/org/apache/commons/cli2/validation NumberValidator.java
Date Thu, 02 Sep 2004 14:49:23 GMT
roxspring    2004/09/02 07:49:23

  Modified:    cli/src/java/org/apache/commons/cli2/validation
                        NumberValidator.java
  Log:
  The number format is now mutable
  
  Revision  Changes    Path
  1.3       +8 -1      jakarta-commons/cli/src/java/org/apache/commons/cli2/validation/NumberValidator.java
  
  Index: NumberValidator.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons/cli/src/java/org/apache/commons/cli2/validation/NumberValidator.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- NumberValidator.java	22 Apr 2004 23:00:14 -0000	1.2
  +++ NumberValidator.java	2 Sep 2004 14:49:23 -0000	1.3
  @@ -55,7 +55,7 @@
           return new NumberValidator(NumberFormat.getNumberInstance());
       }
   
  -    private final NumberFormat format;
  +    private NumberFormat format;
       private Number minimum = null;
       private Number maximum = null;
   
  @@ -128,5 +128,12 @@
        */
       public void setMinimum(Number minimum) {
           this.minimum = minimum;
  +    }
  +
  +    /**
  +     * @param format The format to set.
  +     */
  +    public void setFormat(NumberFormat format) {
  +        this.format = format;
       }
   }
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


Mime
View raw message