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

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

The newest version!
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 long or BigInteger parameters.
 *
 * Applies to long or Long parameters which are also annotated with {@code @ForAll}.
 *
 * @see net.jqwik.api.ForAll
 * @see ByteRange
 * @see ShortRange
 * @see IntRange
 * @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 LongRange {
	long min() default 0;

	long max() default Long.MAX_VALUE;
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy