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