com.github.fashionbrot.annotation.Default Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of validation Show documentation
Show all versions of validation Show documentation
validation 参数验证 https://github.com/fashionbrot/validation
The newest version!
package com.github.fashionbrot.annotation;
import java.lang.annotation.*;
/**
* 是否设置默认值
*
* BigDecimal
* BigInteger
* Short
* Integer
* Long
* Float
* Double
* String
* CharSequence
*/
@Documented
@Target({ElementType.FIELD, ElementType.PARAMETER})
@Retention(RetentionPolicy.RUNTIME)
public @interface Default {
String value() ;
/**
* default @see com.github.fashionbrot.groups.DefaultGroup
* @return groups
*/
Class>[] groups() default {};
/**
* ognl expression
* @return String
*/
String expression() default "";
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy