Class NotEmptyValidatorForArraysOfByte
java.lang.Object
org.hibernate.validator.internal.constraintvalidators.bv.notempty.NotEmptyValidatorForArraysOfByte
- All Implemented Interfaces:
ConstraintValidator<NotEmpty,
byte[]>
public class NotEmptyValidatorForArraysOfByte
extends Object
implements ConstraintValidator<NotEmpty,byte[]>
- Author:
- Guillaume Smet
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
isValid
(byte[] array, ConstraintValidatorContext constraintValidatorContext) Checks the array is notnull
and not empty.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface javax.validation.ConstraintValidator
initialize
-
Constructor Details
-
NotEmptyValidatorForArraysOfByte
public NotEmptyValidatorForArraysOfByte()
-
-
Method Details
-
isValid
Checks the array is notnull
and not empty.- Specified by:
isValid
in interfaceConstraintValidator<NotEmpty,
byte[]> - Parameters:
array
- the array to validateconstraintValidatorContext
- context in which the constraint is evaluated- Returns:
- returns
true
if the array is notnull
and the array is not empty
-