All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.github.commons.utils.validation.number.NumberValidation Maven / Gradle / Ivy

There is a newer version: 1.2.6
Show newest version
package com.github.commons.utils.validation.number;


import javax.validation.Constraint;
import javax.validation.Payload;
import java.lang.annotation.*;

@Documented
@Constraint(
        validatedBy = {NumberValidationImpl.class}
)
@Target({ElementType.METHOD, ElementType.FIELD, ElementType.ANNOTATION_TYPE, ElementType.CONSTRUCTOR, ElementType.PARAMETER})
@Retention(RetentionPolicy.RUNTIME)
public @interface NumberValidation {

    boolean required() default true;

    int verifyType() default 0;//验证类型

    String message() default "{constraint.not.NnmberValidation}";

    Class[] groups() default { };

    Class[] payload() default { };
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy