Class NotEmptyValidatorForArraysOfInt

java.lang.Object
org.hibernate.validator.internal.constraintvalidators.bv.notempty.NotEmptyValidatorForArraysOfInt
All Implemented Interfaces:
ConstraintValidator<NotEmpty,int[]>

public class NotEmptyValidatorForArraysOfInt extends Object implements ConstraintValidator<NotEmpty,int[]>
Author:
Guillaume Smet
  • Constructor Details

    • NotEmptyValidatorForArraysOfInt

      public NotEmptyValidatorForArraysOfInt()
  • Method Details

    • isValid

      public boolean isValid(int[] array, ConstraintValidatorContext constraintValidatorContext)
      Checks the array is not null and not empty.
      Specified by:
      isValid in interface ConstraintValidator<NotEmpty,int[]>
      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