Class SqlTimeGenerator.Builder
- Enclosing class:
SqlTimeGenerator
Builder for
SqlTimeGenerator 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.Sets the exclusive upper bound of the generated range.Sets the inclusive lower bound of the generated range.
-
Constructor Details
-
Builder
Constructs a new builder.- Parameters:
random- the seeded random generator backing the produced generator
-
-
Method Details
-
start
Sets the inclusive lower bound of the generated range.- Parameters:
start- the earliest possible time, inclusive. Defaults to the epoch.- Returns:
- this builder, for chaining
-
end
Sets the exclusive upper bound of the generated range.- Parameters:
end- the time one millisecond past the latest possible value, exclusive. Defaults toAbstractBuilder.DEFAULT_REFERENCEplus 100 hours.- Returns:
- this builder, for chaining
-
build
Description copied from interface:BuilderBuilds and returns a configured data generator.- Returns:
- a new
DataGeneratorconfigured with the builder's settings
-