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