![JAR search and dependency download from the Maven repository](/logo.png)
ru.tinkoff.kora.validation.common.annotation.NotEmpty Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of validation-common Show documentation
Show all versions of validation-common Show documentation
Kora validation-common module
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