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

com.github.fashionbrot.annotation.Validated Maven / Gradle / Ivy

The newest version!
package com.github.fashionbrot.annotation;




import java.lang.annotation.*;


@Documented
@Target({ElementType.METHOD})
@Retention(RetentionPolicy.RUNTIME)
public @interface Validated {

    /**
     * 校验组 default @see com.github.fashionbrot.groups.DefaultGroup
     * @return Class
     */
    Class[] groups() default {};

    /**
     * true 快速失败
     * @return boolean
     */
    boolean failFast() default true;

    /**
     * 验证返回值 默认false
     * @return boolean
     */
    boolean validReturnValue() default false;
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy