All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.avaje.validation.adapter.ArrayValidationAdapter Maven / Gradle / Ivy

Go to download

validator for annotated pojos using constraint annotations and source code generation

There is a newer version: 2.4
Show newest version
package io.avaje.validation.adapter;

final class ArrayValidationAdapter extends ContainerAdapter {

  ArrayValidationAdapter(ValidationAdapter adapters) {
    super(adapters);
  }

  @Override
  public boolean validate(T value, ValidationRequest req, String propertyName) {
    if (initalAdapter.validate(value, req, propertyName)) {

      validateArray((Object[]) value, req, propertyName);
    }
    return true;
  }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy