MutableMirrorableMap

fun MutableMirrorableMap()

Constructs a MutableMirrorableMap with an empty MutableMap as backingMap.

The type of the backingMap is determined by mutableMapOf.


fun <K, V> MutableMirrorableMap(vararg pairs: Pair<K, V>)

Constructs a MutableMirrorableMap with an MutableMap as backingMap with the specified contents, given as a list of pairs.

The type of the backingMap is determined by mutableMapOf.

This constructor creates short-living Pair objects, so it is recommended that it is only used if performance is not critical.

To avoid excessive memory usage, use alternative ways. For example, create a mutable map and populate it using the write operations, and use the default MutableMirrorableMap constructor. The apply function can help to keep the initialization fluent.


fun <K, V> MutableMirrorableMap(backingMap: MutableMap<K, V>)

Constructs a MutableMirrorableMap with any MutableMap instance as backingMap.