Class SqlTimestampGenerator.Builder
- Enclosing class:
SqlTimestampGenerator
Builder for
SqlTimestampGenerator 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 timestamp, inclusive. Defaults toAbstractBuilder.DEFAULT_REFERENCEminus 100 days.- Returns:
- this builder, for chaining
-
end
Sets the exclusive upper bound of the generated range.- Parameters:
end- the timestamp one millisecond past the latest possible value, exclusive. Defaults toAbstractBuilder.DEFAULT_REFERENCEplus 100 days.- 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
-