UniqueElementStrategy

sealed interface UniqueElementStrategy

Strategy for generating distinct values for set-like collections.

Inheritors

Types

Link copied to clipboard

Generates the configured number of candidates and materializes them as a set.

Link copied to clipboard
data class Exact(val maxAttemptsPerElement: Int = 16) : UniqueElementStrategy

Retries candidate generation until the requested number of distinct values is reached.