net.jqwik.time.api.constraints.DurationRange Maven / Gradle / Ivy
package net.jqwik.time.api.constraints;
import java.lang.annotation.*;
import org.apiguardian.api.*;
import static org.apiguardian.api.API.Status.*;
/**
* Constrain the range of generated periods.
*
* Applies to Duration parameters which are also annotated with {@code @ForAll}.
*
* @see net.jqwik.api.ForAll
*/
@Target({ElementType.ANNOTATION_TYPE, ElementType.PARAMETER, ElementType.TYPE_USE})
@Retention(RetentionPolicy.RUNTIME)
@Documented
@API(status = EXPERIMENTAL, since = "1.5.1")
public @interface DurationRange {
String min() default "PT-2562047788015215H-30M-8S";
String max() default "PT2562047788015215H30M7.0S";
}