Class ExcludingGenerator<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.ExcludingGenerator<T>
-
- All Implemented Interfaces:
Generator<T>
public class ExcludingGenerator<T> extends VetoableGenerator<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
Constructors Constructor Description ExcludingGenerator(Generator<T> generator, Iterable<T> excluded, int tries)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected booleantryValue(T value)-
Methods inherited from class de.cuioss.test.generator.internal.net.java.quickcheck.generator.support.VetoableGenerator
next
-
-
-
-
Constructor Detail
-
ExcludingGenerator
public ExcludingGenerator(Generator<T> generator, Iterable<T> excluded, int tries)
-
-
Method Detail
-
tryValue
protected boolean tryValue(T value)
- Specified by:
tryValuein classVetoableGenerator<T>- Returns:
- true to accept the current value.
-
-