Class CustomerLastNameGenerator.Builder
- Enclosing class:
CustomerLastNameGenerator
Builds
CustomerLastNameGenerator instances.-
Field Summary
Fields inherited from class AbstractBuilder
DEFAULT_REFERENCE, random -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds and returns a configured data generator.enumeratedCount(int enumeratedCount) The number of customers at the start of each district whose last name is enumerated deterministically (0..enumeratedCount-1); the rest useNURand.groupSize(int groupSize) The number of customers per district, used to locate each row's position within its district whenenumeratedCount(int)is set.
-
Constructor Details
-
Builder
Creates a builder.- Parameters:
random- the random generator backing the produced generator
-
-
Method Details
-
groupSize
The number of customers per district, used to locate each row's position within its district whenenumeratedCount(int)is set.- Parameters:
groupSize- the number of customers per district- Returns:
- this builder
-
enumeratedCount
The number of customers at the start of each district whose last name is enumerated deterministically (0..enumeratedCount-1); the rest useNURand. Must be in[0,1000];0disables enumeration.- Parameters:
enumeratedCount- the number of deterministically enumerated customers per district- Returns:
- this builder
-
build
Description copied from interface:BuilderBuilds and returns a configured data generator.- Returns:
- a new
DataGeneratorconfigured with the builder's settings
-