io.github.serpro69.kfaker.provider.Cannabis.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of kotlin-faker Show documentation
Show all versions of kotlin-faker Show documentation
Generate realistically looking fake data such as names, addresses, banking details, and many more, that can be used for testing and data anonymization purposes.
package io.github.serpro69.kfaker.provider
import io.github.serpro69.kfaker.*
import io.github.serpro69.kfaker.dictionary.*
import io.github.serpro69.kfaker.provider.unique.LocalUniqueDataProvider
import io.github.serpro69.kfaker.provider.unique.UniqueProviderDelegate
/**
* [FakeDataProvider] implementation for [CategoryName.CANNABIS] category.
*/
@Suppress("unused")
class Cannabis internal constructor(fakerService: FakerService) : AbstractFakeDataProvider(fakerService) {
override val categoryName = CategoryName.CANNABIS
override val localUniqueDataProvider = LocalUniqueDataProvider()
override val unique by UniqueProviderDelegate(localUniqueDataProvider)
fun strains() = resolve("strains")
fun cannabinoidAbbreviations() = resolve("cannabinoid_abbreviations")
fun cannabinoids() = resolve("cannabinoids")
fun terpenes() = resolve("terpenes")
fun medicalUses() = resolve("medical_uses")
fun healthBenefits() = resolve("health_benefits")
fun categories() = resolve("categories")
fun types() = resolve("types")
fun brands() = resolve("brands")
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy