doc / ch.tutteli.atrium.api.infix.en_GB.creating / Pairs

Pairs

class Pairs<out K, out V> : VarArgHelper<Pair<K, V>>

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

Use the function pairs(x to y, ...) to create this representation.

Properties

expected

val expected: Pair<K, V>

The first argument in the argument list T, vararg T

otherExpected

val otherExpected: Array<out Pair<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.