@Documented @Constraint(validatedBy={}) @Target(value={METHOD,FIELD,ANNOTATION_TYPE,CONSTRUCTOR,PARAMETER,TYPE_USE}) @Retention(value=RUNTIME) @Repeatable(value=NotBlank.List.class) public @interface NotBlank
null
でなく、最低でも1文字以上の空白でない文字を含まなければなりません。
CharSequence
も受け付けます。Character.isWhitespace(char)
Copyright © 2007-2018 Red Hat Inc. All Rights Reserved. Released under the Apache Software License 2.0. Translated by @megascus.