Class NotEmptyValidatorForArraysOfLong

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

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

    • NotEmptyValidatorForArraysOfLong

      public NotEmptyValidatorForArraysOfLong()
  • Method Details

    • isValid

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