public class NotEmptyValidatorForCharSequence extends Object implements ConstraintValidator<NotEmpty,CharSequence>
Constructor and Description |
---|
NotEmptyValidatorForCharSequence() |
Modifier and Type | Method and Description |
---|---|
boolean |
isValid(CharSequence charSequence,
ConstraintValidatorContext constraintValidatorContext)
Checks the character sequence is not
null and not empty. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
initialize
public boolean isValid(CharSequence charSequence, ConstraintValidatorContext constraintValidatorContext)
null
and not empty.isValid
in interface ConstraintValidator<NotEmpty,CharSequence>
charSequence
- the character sequence to validateconstraintValidatorContext
- context in which the constraint is evaluatedtrue
if the character sequence is not null
and not empty.Copyright © 2021 JBoss by Red Hat. All rights reserved.