Class NotEmptyValidatorForArraysOfDouble

    • Constructor Detail

      • NotEmptyValidatorForArraysOfDouble

        public NotEmptyValidatorForArraysOfDouble()
    • Method Detail

      • isValid

        public boolean isValid​(double[] array,
                               ConstraintValidatorContext constraintValidatorContext)
        Checks the array is not null and not empty.
        Specified by:
        isValid in interface ConstraintValidator<NotEmpty,​double[]>
        Parameters:
        array - the array to validate
        constraintValidatorContext - context in which the constraint is evaluated
        Returns:
        returns true if the array is not null and the array is not empty