doc / ch.tutteli.atrium.logic.creating.typeutils.impl / DefaultMapLikeToIterablePairTransformer

DefaultMapLikeToIterablePairTransformer

class DefaultMapLikeToIterablePairTransformer : MapLikeToIterablePairTransformer (source)

Transforms all Map as well as all IterableLike which have a resulting element type of either [Pair]<*, *> or [Map.Entry]<*, *> to an Iterable with an element type [Pair]<K, V>.

Constructors

<init>

DefaultMapLikeToIterablePairTransformer(container: AssertionContainer<*>)

Transforms all Map as well as all IterableLike which have a resulting element type of either [Pair]<*, *> or [Map.Entry]<*, *> to an Iterable with an element type [Pair]<K, V>.

Functions

supportedTypes

fun supportedTypes(): List<String>

unsafeTransform

fun <K, V> unsafeTransform(mapLike: IterableLike): List<Pair<K, V>>

Transforms the given mapLike to an Iterable<K, V>> where K represents the key type and V the value type.