abstract class Builder<T : AbstractFaker> : Any
Fields
| Name | Description |
|---|---|
protected var config: FakerConfig
|
Constructors
| Name | Description |
|---|---|
constructor()
|
DSL builder for creating instances of AbstractFaker |
Methods
fakerConfig
fun fakerConfig(block: ConfigBuilder)
Sets config configuration for this AbstractFaker.Builder using the results of the block function.
This config will then be used when an instance of AbstractFaker is created using this AbstractFaker.Builder
Parameters
| Name | Description |
|---|---|
block: ConfigBuilder
|
ReturnValue
| Name | Description |
|---|---|
Unit
|
build
abstract fun build(): T
Builds an instance of AbstractFaker with this config.
ReturnValue
| Name | Description |
|---|---|
T
|
DSL builder for creating instances of AbstractFaker