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

KeyValues

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

Parameter object to express KeyWithValueCreator<K, V>, vararg KeyWithValueCreator<K, V>.

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

Properties

expected

val expected: KeyWithValueCreator<K, V>

The first argument in the argument list T, vararg T

otherExpected

val otherExpected: Array<out KeyWithValueCreator<K, V>>

The second argument in the argument list T, vararg T

Inherited Properties

mapArguments

open val mapArguments: ArgumentMapperBuilder<T>

Creates an ArgumentMapperBuilder which allows to map expected and otherExpected.

Inherited Functions

toList

open fun toList(): List<T>

Returns the arguments as List.