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

cn.ipokerface.common.validation.constraint.Size Maven / Gradle / Ivy

There is a newer version: 2.1.0
Show newest version
package cn.ipokerface.common.validation.constraint;

import cn.ipokerface.common.validation.validator.Constraint;
import cn.ipokerface.common.validation.validator.SizeConstraintValidator;

import java.lang.annotation.*;

/**
 * Created by       PokerFace
 * Create Date      2019-11-25.
 * Email:           [email protected]
 * Version          1.0.0
 * 

* Description: annotation on * {@link java.util.Collection} * {@link java.util.Map} * {@link java.lang.String} */ @Target({ ElementType.FIELD}) @Retention(RetentionPolicy.RUNTIME) @Documented @Constraint(validator = SizeConstraintValidator.class) public @interface Size { String message() default ""; Class[] groups() default { }; long min() default -1; long max() default -1; }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy