The new methods need @since javadoc tags.

David

--- [EMAIL PROTECTED] wrote:
> husted      2004/06/08 08:22:29
> 
>   Modified:    validator/src/share/org/apache/commons/validator
>                         GenericValidator.java
>   Log:
>   Apply #29015 "Add support for min or max numeric values" submitted by
> Jon Wilmoth
>   
>   Revision  Changes    Path
>   1.32      +85 -3    
>
jakarta-commons/validator/src/share/org/apache/commons/validator/GenericValidator.java
>   
>   Index: GenericValidator.java
>   ===================================================================
>   RCS file:
>
/home/cvs/jakarta-commons/validator/src/share/org/apache/commons/validator/GenericValidator.java,v
>   retrieving revision 1.31
>   retrieving revision 1.32
>   diff -u -r1.31 -r1.32
>   --- GenericValidator.java   11 Apr 2004 06:47:22 -0000      1.31
>   +++ GenericValidator.java   8 Jun 2004 15:22:29 -0000       1.32
>   @@ -268,5 +268,87 @@
>        public static boolean minLength(String value, int min) {
>            return (value.length() >= min);
>        }
>   +    
>   +    // See http://issues.apache.org/bugzilla/show_bug.cgi?id=29015
> WRT the "value" methods
>   +
>   +    /**
>   +     * <p>Checks if the value is greater than or equal to the
> min.</p>
>   +     *
>   +     * @param value The value validation is being performed on.
>   +     * @param min The minimum numeric value.
>   +     */
>   +    public static boolean minValue(int value, int min) {
>   +        return (value >= min);
>   +    }
>   +
>   +    /**
>   +     * <p>Checks if the value is greater than or equal to the
> min.</p>
>   +     *
>   +     * @param value The value validation is being performed on.
>   +     * @param min The minimum numeric value.
>   +     */
>   +    public static boolean minValue(long value, long min) {
>   +        return (value >= min);
>   +    }
>   +
>   +    /**
>   +     * <p>Checks if the value is greater than or equal to the
> min.</p>
>   +     *
>   +     * @param value The value validation is being performed on.
>   +     * @param min The minimum numeric value.
>   +     */
>   +    public static boolean minValue(double value, double min) {
>   +        return (value >= min);
>   +    }
>   +
>   +    /**
>   +     * <p>Checks if the value is greater than or equal to the
> min.</p>
>   +     *
>   +     * @param value The value validation is being performed on.
>   +     * @param min The minimum numeric value.
>   +     */
>   +    public static boolean minValue(float value, float min) {
>   +        return (value >= min);
>   +    }
>   +
>   +    /**
>   +     * <p>Checks if the value is less than or equal to the max.</p>
>   +     *
>   +     * @param value The value validation is being performed on.
>   +     * @param max The maximum numeric value.
>   +     */
>   +    public static boolean maxValue(int value, int max) {
>   +        return (value <= max);
>   +    }
>   +
>   +    /**
>   +     * <p>Checks if the value is less than or equal to the max.</p>
>   +     *
>   +     * @param value The value validation is being performed on.
>   +     * @param max The maximum numeric value.
>   +     */
>   +    public static boolean maxValue(long value, long max) {
>   +        return (value <= max);
>   +    }
>   +
>   +    /**
>   +     * <p>Checks if the value is less than or equal to the max.</p>
>   +     *
>   +     * @param value The value validation is being performed on.
>   +     * @param max The maximum numeric value.
>   +     */
>   +    public static boolean maxValue(double value, double max) {
>   +        return (value <= max);
>   +    }
>   +
>   +    /**
>   +     * <p>Checks if the value is less than or equal to the max.</p>
>   +     *
>   +     * @param value The value validation is being performed on.
>   +     * @param max The maximum numeric value.
>   +     */
>   +    public static boolean maxValue(float value, float max) {
>   +        return (value <= max);
>   +    }
>    
>    }
>   
>   
>   
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 



        
                
__________________________________
Do you Yahoo!?
Friends.  Fun.  Try the all-new Yahoo! Messenger.
http://messenger.yahoo.com/ 

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to