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

net.jqwik.api.constraints.CharRange 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 chars used to generate Strings or Characters to chars in the range
 * from {@code from} to {@code to}.
 *
 * Applies to String or Character parameters which are also annotated with {@code @ForAll}.
 *
 * When used with String parameters it can be combined with other char constraining annotations.
 * In that case the set of possible characters is expanded by each annotation.
 *
 * @see net.jqwik.api.ForAll
 * @see Chars
 */
@Target({ ElementType.ANNOTATION_TYPE, ElementType.PARAMETER, ElementType.TYPE_USE })
@Retention(RetentionPolicy.RUNTIME)
@Repeatable(CharRangeList.class)
@Documented
@API(status = MAINTAINED, since = "1.0")
public @interface CharRange {
	char from() default 0;

	char to();
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy