public class NotBlankValidator extends Object implements ConstraintValidator<NotBlank,CharSequence>
| Constructor and Description |
|---|
NotBlankValidator() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
isValid(CharSequence charSequence,
ConstraintValidatorContext constraintValidatorContext)
Checks that the trimmed string is not empty.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitinitializepublic boolean isValid(CharSequence charSequence, ConstraintValidatorContext constraintValidatorContext)
isValid in interface ConstraintValidator<NotBlank,CharSequence>charSequence - the character sequence to validateconstraintValidatorContext - context in which the constraint is evaluatedtrue if the string is null or the length of the trimmed
charSequence is strictly superior to 0, false otherwiseCopyright © 2019 JBoss by Red Hat. All rights reserved.