CorrelatedPropertyGenerator

inner class CorrelatedPropertyGenerator<R, RR> : Generator<RR>

Constructors

CorrelatedPropertyGenerator
Link copied to clipboard
fun <R, RR> CorrelatedPropertyGenerator(prop: KProperty1<T, R>, invoke: (R) -> Generator<RR>)

This constructor enables users to nest a CorrelatedPropertyGenerator. Doing so results in a correlation chain by which all required values are generated ahead of the correlated Generator.

CorrelatedPropertyGenerator
Link copied to clipboard
fun <R, RR> CorrelatedPropertyGenerator(prop: KProperty1<T, R>, invoke: (R, Random) -> RR)

This constructor enables direct correlation with a desired Generator

Functions

generate
Link copied to clipboard
open override fun generate(seed: Random): RR

Implementation of the Generator interface, allowing for the correlated generator to be invoked on the fly once provided with the requisite data.