net.jqwik.api.constraints.IntRange Maven / Gradle / Ivy
package net.jqwik.api.constraints;
import java.lang.annotation.*;
import org.apiguardian.api.*;
import static org.apiguardian.api.API.Status.*;
/**
* Constrain the range of a generated int or Integer parameters.
*
* Applies to int or Integer parameters which are also annotated with {@code @ForAll}.
*
* @see net.jqwik.api.ForAll
* @see ByteRange
* @see ShortRange
* @see LongRange
* @see FloatRange
* @see DoubleRange
* @see BigRange
*/
@Target({ ElementType.ANNOTATION_TYPE, ElementType.PARAMETER, ElementType.TYPE_USE })
@Retention(RetentionPolicy.RUNTIME)
@Documented
@API(status = MAINTAINED, since = "1.0")
public @interface IntRange {
int min() default 0;
int max() default Integer.MAX_VALUE;
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy