@Documented @Constraint(validatedBy=NullableNotBlankValidator.class) @Target(value={METHOD,FIELD,ANNOTATION_TYPE,CONSTRUCTOR,PARAMETER}) @Retention(value=RUNTIME) public @interface NullableNotBlank
When a String is not null it should not be empty nor consists of only whitespaces.
Compared to NotEmpty this validator will not accept whitespaces as valid.
Compared to NotBlank this validator will accept null as valid.
Copyright © 2014-2016 Konik.io. All Rights Reserved.