Map.toMap()、Map.toMutableMap()

这两个函数用来复制map:

class ImmutablePropertyBag(map: Map<String, Any>) {
    private val mapCopy = map.toMap()
}

results matching ""

    No results matching ""