public class NotEmptyValidatorForArraysOfShort
extends java.lang.Object
implements javax.validation.ConstraintValidator<javax.validation.constraints.NotEmpty,short[]>
Constructor and Description |
---|
NotEmptyValidatorForArraysOfShort() |
Modifier and Type | Method and Description |
---|---|
boolean |
isValid(short[] array,
javax.validation.ConstraintValidatorContext constraintValidatorContext)
Checks the array is not
null and not empty. |
public boolean isValid(short[] array, javax.validation.ConstraintValidatorContext constraintValidatorContext)
null
and not empty.isValid
in interface javax.validation.ConstraintValidator<javax.validation.constraints.NotEmpty,short[]>
array
- the array to validateconstraintValidatorContext
- context in which the constraint is evaluatedtrue
if the array is not null
and the array is not emptyCopyright © 2007-2022 Red Hat, Inc. All Rights Reserved