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

ru.tinkoff.kora.validation.common.annotation.NotEmpty Maven / Gradle / Ivy

There is a newer version: 1.1.18
Show newest version
package ru.tinkoff.kora.validation.common.annotation;

import ru.tinkoff.kora.validation.common.constraint.factory.NotEmptyValidatorFactory;

import java.lang.annotation.*;

/**
 * Annotated element must not be {@code null} nor empty:
 * 

* Supported types are: *

    *
  • {@code CharSequence} (length of character sequence is evaluated)
  • *
  • {@code String} (length of character sequence is evaluated)
  • *
  • {@code Iterable} (collection size is evaluated)
  • *
  • {@code Collection} (collection size is evaluated)
  • *
  • {@code List} (collection size is evaluated)
  • *
  • {@code Set} (collection size is evaluated)
  • *
  • {@code Map} (map size is evaluated)
  • *
*/ @Documented @Retention(value = RetentionPolicy.CLASS) @Target(value = {ElementType.METHOD, ElementType.FIELD, ElementType.PARAMETER}) @ValidatedBy(NotEmptyValidatorFactory.class) public @interface NotEmpty { }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy