MapUtilsMapKeyExtension<M, T> extension

on

Methods

addItem(M key, T value) Map<M, T>?

Available on Map<M, T>?, provided by the MapUtilsMapKeyExtension extension

添加元素到map中 key元素key value元素value
getValue<T>(M key, [T? defaultValue]) → T?

Available on Map<M, T>?, provided by the MapUtilsMapKeyExtension extension

获取map value keymap->key defaultValue不在存在时返回默认值
isEmptyMap() bool

Available on Map<M, T>?, provided by the MapUtilsMapKeyExtension extension

判断是否空map key-value
isNotEmptyMap() bool

Available on Map<M, T>?, provided by the MapUtilsMapKeyExtension extension

判断map为非空
merge(Map<M, T> items) Map<M, T>

Available on Map<M, T>?, provided by the MapUtilsMapKeyExtension extension

合并两个map对象 items要合并的map集合
removeKeys(List<M> keys) → void

Available on Map<M, T>?, provided by the MapUtilsMapKeyExtension extension

移除map中对应key的数据 keys map keys