// Path: datagen/src/main/java/io/qala/datagen/RandomShortApi.java
// public static String english(int exactLength) {
//     return length(exactLength).english();
// }


import java.util.stream.Stream;
import static io.qala.datagen.RandomShortApi.english;
package io.qala.datagen.junit.jupiter;



class EnglishArgumentProvider extends RandomizedArgumentProvider<English> {
    private English annotation;

    @Override
    public void accept(English annotation) {
        this.annotation = annotation;
    }

    @Override Stream<Object[]> getValueWithDescription() {
        return Stream.of(annotation).map(EnglishArgumentProvider::generateParams);
    }
    @Override Stream<Object> getValue() {
        return Stream.of(annotation).map(EnglishArgumentProvider::generateParam);
    }

    static String generateParam(English annotation) {
        if (annotation.length() > 0) return english(annotation.length());
// Path: datagen/src/main/java/io/qala/datagen/RandomShortApi.java
// public static String english(int exactLength) {
//     return length(exactLength).english();
// }


// Path: junit5/src/main/java/io/qala/datagen/junit/jupiter/EnglishArgumentProvider.java
import java.util.stream.Stream;
import static io.qala.datagen.RandomShortApi.english;

package io.qala.datagen.junit.jupiter;



class EnglishArgumentProvider extends RandomizedArgumentProvider<English> {
    private English annotation;

    @Override
    public void accept(English annotation) {
        this.annotation = annotation;
    }

    @Override Stream<Object[]> getValueWithDescription() {
        return Stream.of(annotation).map(EnglishArgumentProvider::generateParams);
    }
    @Override Stream<Object> getValue() {
        return Stream.of(annotation).map(EnglishArgumentProvider::generateParam);
    }

    static String generateParam(English annotation) {
        if (annotation.length() > 0) return english(annotation.length());
        return english(annotation.min(), annotation.max());