MapEx<K, V> extension

on

Methods

merge(Map<K, V>? other) → void
将后一个 Map 的内容合并到前一个 Map 中
mergeIfAbsent(Map<K, V>? other) → void
将后一个 Map 的内容合并到前一个 Map 中, 如果 key 不存在, 则插入
mergeNonNull(Map<K, V>? other) → void
将后一个 Map 的内容合并到前一个 Map 中, 同时过滤掉 null
mergeTo(Map<K, V>? other) Map<K, V>
将后一个 Map 的内容合并到前一个 Map 中