public class NotEmptyValidatorForArraysOfDouble
extends java.lang.Object
implements javax.validation.ConstraintValidator<javax.validation.constraints.NotEmpty,double[]>
Constructor and Description |
---|
NotEmptyValidatorForArraysOfDouble() |
Modifier and Type | Method and Description |
---|---|
boolean |
isValid(double[] array,
javax.validation.ConstraintValidatorContext constraintValidatorContext)
Checks the array is not
null and not empty. |
public boolean isValid(double[] array, javax.validation.ConstraintValidatorContext constraintValidatorContext)
null
and not empty.isValid
in interface javax.validation.ConstraintValidator<javax.validation.constraints.NotEmpty,double[]>
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