doc / ch.tutteli.atrium.logic.creating.typeutils / MapLikeToIterablePairTransformer

MapLikeToIterablePairTransformer

interface MapLikeToIterablePairTransformer (source)

Functions

supportedTypes

abstract fun supportedTypes(): List<String>

unsafeTransform

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

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

Inheritors

DefaultMapLikeToIterablePairTransformer

class DefaultMapLikeToIterablePairTransformer : MapLikeToIterablePairTransformer

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>.