优秀引用

@NotEmpty、@NotNull、@NotBlank注解解析

2019-12-05  本文已影响0人  8a5e0731064f

源码解析

/**
 * The annotated element must not be {@code null} nor empty. Supported types are:
 * <ul>
 * <li>{@code CharSequence} (length of character sequence is evaluated)</li>  char值得可读序列,CharSequence的实现类有String, StringBuffer, StringBuilder, CharBuffer
 * <li>{@code Collection} (collection size is evaluated)</li> 集合类
 * <li>{@code Map} (map size is evaluated)</li> map散列表
 * <li>Array (array length is evaluated)</li> 数组
 * </ul>
 */
/**
 * The annotated element must not be {@code null}.
 * Accepts any type.
 */
/**
 * The annotated element must not be {@code null} and must contain at least one
 * non-whitespace character. Accepts {@code CharSequence}.
 */
上一篇 下一篇

猜你喜欢

热点阅读