Skip to content

//core/io.github.serpro69.kfaker/FakerConfig/Builder

Builder

[jvm]\ class Builder

Properties

Name Summary
locale [jvm]
var locale: String
Sets the FakerConfig.locale when creating an instance of FakerConfig with this Builder. Default: "en".
random [jvm]
var random: Random
Sets the FakerConfig.random when creating an instance of FakerConfig with this Builder. Default: "en".
randomSeed [jvm]
var randomSeed: Long?
Sets the seed for FakerConfig.random. If specified, the random property will be ignored when creating an instance of FakerConfig with this Builder. Default: null.
uniqueGeneratorRetryLimit [jvm]
var uniqueGeneratorRetryLimit: Int
Sets the FakerConfig.uniqueGeneratorRetryLimit when creating an instance of FakerConfig with this Builder. Default: 100.

Functions

Name Summary
build [jvm]
fun build(): FakerConfig
randomClassInstance [jvm]
fun randomClassInstance(configurator: RandomProviderConfig.() -> Unit)
withLocale [jvm]
fun withLocale(locale: String): FakerConfig.Builder
withRandom [jvm]
fun withRandom(random: Random): FakerConfig.Builder
withRandomSeed [jvm]
fun withRandomSeed(seed: Long): FakerConfig.Builder
withUniqueGeneratorRetryLimit [jvm]
fun withUniqueGeneratorRetryLimit(retryLimit: Int): FakerConfig.Builder