@Documented @Constraint(validatedBy={}) @Target(value={METHOD,FIELD,ANNOTATION_TYPE,CONSTRUCTOR,PARAMETER,TYPE_USE}) @Retention(value=RUNTIME) @Repeatable(value=NotEmpty.List.class) public @interface NotEmpty
null
nor empty. Supported types are:
CharSequence
(length of character sequence is evaluated)Collection
(collection size is evaluated)Map
(map size is evaluated)Copyright © 1996-2017, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.