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

net.jqwik.api.constraints.NotEmpty Maven / Gradle / Ivy

There is a newer version: 1.9.2
Show newest version
package net.jqwik.api.constraints;

import java.lang.annotation.*;

import org.apiguardian.api.*;

import static org.apiguardian.api.API.Status.*;

/**
 * Constrain the size of generated "sizable" types to be at least 1.
 *
 * Applies to String, List, Set, Stream, and arrays which are also annotated with {@code @ForAll}.
 *
 * Can be combined with {@code @Size(max=XXX)} or {@code @StringLength(max=XXX)}.
 *
 * @see net.jqwik.api.ForAll
 * @see net.jqwik.api.constraints.Size
 */
@Target({ ElementType.ANNOTATION_TYPE, ElementType.PARAMETER, ElementType.TYPE_USE })
@Retention(RetentionPolicy.RUNTIME)
@Size(min = 1)
@StringLength(min = 1)
@Documented
@API(status = MAINTAINED, since = "1.0")
public @interface NotEmpty {
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy