doc / ch.tutteli.atrium.api.infix.en_GB.creating.map / KeyWithValueCreator

KeyWithValueCreator

data class KeyWithValueCreator<out K, V : Any> (source)

Parameter object to express a key/value Pair whose value type is a nullable lambda with an Expect receiver, which means one can either pass a lambda or null.

Use the function keyValue(x) { ... } to create this representation.

Properties

key

val key: K

valueAssertionCreatorOrNull

val valueAssertionCreatorOrNull: (Expect<V>.() -> Unit)?

Functions

toPair

fun toPair(): Pair<K, (Expect<V>.() -> Unit)?>

toString

fun toString(): String