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

net.jqwik.engine.properties.arbitraries.exhaustive.IterableBasedExhaustiveGenerator Maven / Gradle / Ivy

There is a newer version: 1.9.1
Show newest version
package net.jqwik.engine.properties.arbitraries.exhaustive;

import java.util.*;

import net.jqwik.api.*;

class IterableBasedExhaustiveGenerator implements ExhaustiveGenerator {

	final private Iterable iterable;
	final private long maxCount;

	IterableBasedExhaustiveGenerator(Iterable iterable, long maxCount) {
		this.iterable = iterable;
		this.maxCount = maxCount;
	}

	@Override
	public long maxCount() {
		return maxCount;
	}

	@Override
	public Iterator iterator() {
		return iterable.iterator();
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy