personal.aug.easy.validation.annotations.ValidateNumber Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of easy-validation Show documentation
Show all versions of easy-validation Show documentation
This support easily way for validation for object
The newest version!
package personal.aug.easy.validation.annotations;
import static java.lang.annotation.ElementType.FIELD;
import static java.lang.annotation.RetentionPolicy.RUNTIME;
import java.lang.annotation.Retention;
import java.lang.annotation.Target;
/**
* Validate the field with number type, just validate range.
*
* @author AUG
*
*/
@Retention(RUNTIME)
@Target(FIELD)
public @interface ValidateNumber {
/**
* The start value, default 0.
*/
public double min() default 0d;
/**
* The end value, default Double.MAX_VALUE.
*
*/
public double max() default Double.MAX_VALUE;
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy