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