Class SetGenerator<T extends Set>
java.lang.Object
com.pholser.junit.quickcheck.generator.Generator<T>
com.pholser.junit.quickcheck.generator.ComponentizedGenerator<T>
com.pholser.junit.quickcheck.generator.java.util.CollectionGenerator<T>
com.pholser.junit.quickcheck.generator.java.util.SetGenerator<T>
- Type Parameters:
T- the type of set generated
- Direct Known Subclasses:
HashSetGenerator,LinkedHashSetGenerator
Base class for generators of
Sets.-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class com.pholser.junit.quickcheck.generator.java.util.CollectionGenerator
configure, doShrink, empty, generate, magnitude, numberOfNeededComponents, setDistinctMethods inherited from class com.pholser.junit.quickcheck.generator.ComponentizedGenerator
addComponentGenerators, canGenerateForParametersOfTypes, canRegisterAsType, componentGenerators, configure, hasComponents, provideMethods inherited from class com.pholser.junit.quickcheck.generator.Generator
canShrink, compatibleWithTypeParameter, configurationAnnotationsOn, configure, copy, gen, gen, narrow, shrink, types
-
Constructor Details
-
SetGenerator
-
-
Method Details
-
configure
Description copied from class:CollectionGeneratorTells this generator to add elements to the generated collection a number of times within a specified minimum and/or maximum, inclusive, chosen with uniform distribution.
Note that some kinds of collections disallow duplicates, so the number of elements added may not be equal to the collection's
Collection.size().- Overrides:
configurein classCollectionGenerator<T extends Set>- Parameters:
size- annotation that gives the size constraints
-