//core/io.github.serpro69.kfaker.provider.unique/UniqueProviderConfiguration/enable
enable¶
[jvm]\ fun <T : FakeDataProvider> enable(providerFunction: KProperty0<T>, config: UniqueProviderConfiguration.() -> Unit)
fun <T : FakeDataProvider> enable(providerFunction: KProperty0<T>)
Enable generation of unique values for providerFunction of T provider.
Parameters¶
jvm
T | an implementation class of FakeDataProvider, for example Address |
providerFunction | a KProperty0 of the provider function that generates a value, for example address::country for Address.country |