Class NotEmptyValidatorForArraysOfShort
- java.lang.Object
-
- org.hibernate.validator.internal.constraintvalidators.bv.notempty.NotEmptyValidatorForArraysOfShort
-
- All Implemented Interfaces:
ConstraintValidator<NotEmpty,short[]>
public class NotEmptyValidatorForArraysOfShort extends Object implements ConstraintValidator<NotEmpty,short[]>
- Author:
- Guillaume Smet
-
-
Constructor Summary
Constructors Constructor Description NotEmptyValidatorForArraysOfShort()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanisValid(short[] array, ConstraintValidatorContext constraintValidatorContext)Checks the array is notnulland not empty.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface jakarta.validation.ConstraintValidator
initialize
-
-
-
-
Method Detail
-
isValid
public boolean isValid(short[] array, ConstraintValidatorContext constraintValidatorContext)Checks the array is notnulland not empty.- Specified by:
isValidin interfaceConstraintValidator<NotEmpty,short[]>- Parameters:
array- the array to validateconstraintValidatorContext- context in which the constraint is evaluated- Returns:
- returns
trueif the array is notnulland the array is not empty
-
-