Class AbstractContainerConstraintValidator<T>

    • Constructor Detail

      • AbstractContainerConstraintValidator

        public AbstractContainerConstraintValidator()
    • Method Detail

      • validateIterable

        public final void validateIterable​(Iterable<T> iterable,
                                           HttpModelType httpModelType,
                                           String modelName)
        Description copied from interface: ConstraintValidator
        Validates all items from the iterable.

        The state of the iterable must not be altered.

        If the iterable is null validator does not throw ValidationException.

        Specified by:
        validateIterable in interface ConstraintValidator<T>
        Parameters:
        iterable - the iterable to validate
        httpModelType - the http model type
        modelName - the parameter or header name
      • validateIterable

        public final void validateIterable​(Iterable<T> iterable)
        Description copied from interface: ConstraintValidator
        Validates all items from the iterable.

        The state of the value must not be altered.

        If the iterable is null validator does not throw ValidationException.

        Specified by:
        validateIterable in interface ConstraintValidator<T>
        Parameters:
        iterable - the iterable to validate