atrium-api-fluent-en_GB-jvm / ch.tutteli.atrium.api.fluent.en_GB / KeyValue

KeyValue

data class KeyValue<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.

Constructors

<init>

KeyValue(key: K, valueAssertionCreatorOrNull: (<ERROR CLASS><V>.() -> Unit)?)

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.

Properties

key

val key: K

valueAssertionCreatorOrNull

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

Functions

toPair

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

toString

fun toString(): String