Class NotEmptyValidatorForArraysOfDouble
java.lang.Object
org.hibernate.validator.internal.constraintvalidators.bv.notempty.NotEmptyValidatorForArraysOfDouble
- All Implemented Interfaces:
ConstraintValidator<NotEmpty,
double[]>
public class NotEmptyValidatorForArraysOfDouble
extends Object
implements ConstraintValidator<NotEmpty,double[]>
- Author:
- Guillaume Smet
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
isValid
(double[] 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 jakarta.validation.ConstraintValidator
initialize
-
Constructor Details
-
NotEmptyValidatorForArraysOfDouble
public NotEmptyValidatorForArraysOfDouble()
-
-
Method Details
-
isValid
Checks the array is notnull
and not empty.- Specified by:
isValid
in interfaceConstraintValidator<NotEmpty,
double[]> - 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
-