You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
476 B
22 lines
476 B
1 year ago
|
package annotation;
|
||
|
|
||
|
import java.lang.annotation.ElementType;
|
||
|
import java.lang.annotation.Retention;
|
||
|
import java.lang.annotation.RetentionPolicy;
|
||
|
import java.lang.annotation.Target;
|
||
|
|
||
|
import enums.VerifyRegexEnum;
|
||
|
|
||
|
@Target({ ElementType.PARAMETER, ElementType.FIELD })
|
||
|
@Retention(RetentionPolicy.RUNTIME)
|
||
|
public @interface VerifyParam {
|
||
|
VerifyRegexEnum regex() default VerifyRegexEnum.NO;
|
||
|
|
||
|
int min() default -1;
|
||
|
|
||
|
int max() default -1;
|
||
|
|
||
|
boolean required() default false;
|
||
|
|
||
|
}
|