doc / ch.tutteli.atrium.api.cc.en_GB / KeyValue

KeyValue

data class KeyValue<out K, V : Any>
Deprecated: Switch from api-cc-en_GB to api-fluent-en_GB; will be removed with 1.0.0 -- see https://github.com/robstoll/atrium/releases/tag/v0.9.0#migration for migration hints and scripts.

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

Constructors

<init>

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

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

Properties

key

val key: K

valueAssertionCreatorOrNull

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

Functions

toPair

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

toString

fun toString(): String