Package org.apache.solr.bench.generators
Class MapsDSL.MapGeneratorBuilder<K,V>
java.lang.Object
org.apache.solr.bench.generators.MapsDSL.MapGeneratorBuilder<K,V>
- Type Parameters:
K- key type to generateV- value type to generate
- Enclosing class:
MapsDSL
MapGeneratorBuilder enables the creation of Sources for Maps of fixed and bounded size, where
no Collector is specified. A MapGeneratorBuilder can be used to create a
TypedListGeneratorBuilder, where the Collector is specified.
-
Constructor Summary
ConstructorsConstructorDescriptionMapGeneratorBuilder(org.quicktheories.core.Gen<K> kg, org.quicktheories.core.Gen<V> vg) -
Method Summary
Modifier and TypeMethodDescriptionofSize(int size) Generates a Map of objects, where the size of the Map is fixedofSizeBetween(int minSize, int maxSize) Generates a Map of objects, where the size of the Map is bounded by minimumSize and maximumSizeGenerates a Map of objects with sizes drawn from sizes gen
-
Constructor Details
-
MapGeneratorBuilder
-
-
Method Details
-
ofSize
Generates a Map of objects, where the size of the Map is fixed- Parameters:
size- size of lists to generate- Returns:
- a Source of Maps of type K,V
-
ofSizeBetween
Generates a Map of objects, where the size of the Map is bounded by minimumSize and maximumSize- Parameters:
minSize- inclusive minimum size of MapmaxSize- inclusive maximum size of Map- Returns:
- a Source of Maps of type T
-
ofSizes
Generates a Map of objects with sizes drawn from sizes gen- Parameters:
sizes- Sizes of maps to generate- Returns:
- A Source of Maps of Type T
-