Module de.cuioss.test.generator
Class UniqueValuesGenerator<T>
java.lang.Object
de.cuioss.test.generator.internal.net.java.quickcheck.generator.support.VetoableGenerator<T>
de.cuioss.test.generator.internal.net.java.quickcheck.generator.support.UniqueValuesGenerator<T>
- All Implemented Interfaces:
Generator<T>,StatefulGenerator<T>
-
Field Summary
Fields inherited from class de.cuioss.test.generator.internal.net.java.quickcheck.generator.support.VetoableGenerator
DEFAULT_MAX_TRIES, MIN_TRIES -
Constructor Summary
ConstructorsConstructorDescriptionUniqueValuesGenerator(Generator<? extends T> generator, int defaultMaxTries) -
Method Summary
Methods inherited from class de.cuioss.test.generator.internal.net.java.quickcheck.generator.support.VetoableGenerator
next
-
Constructor Details
-
UniqueValuesGenerator
-
-
Method Details
-
tryValue
- Specified by:
tryValuein classVetoableGenerator<T>- Returns:
- true to accept the current value.
-
reset
public void reset()Description copied from interface:StatefulGeneratorResets the state of the generator to the state it had immediately after construction.Makes a heavy weight generator reusable.
- Specified by:
resetin interfaceStatefulGenerator<T>
-