JunnyMapExtension<K, V> extension
提供对 Map 的便捷扩展操作,包括键值替换、过滤、对比等功能。
- on
-
- Map<
K, V>
- Map<
Methods
-
differentKeys(
Map< K, V> other) → Set<K> -
Available on Map<
返回当前 Map 与另一个 MapK, V> , provided by the JunnyMapExtension extensionother中值不同的键集合。 -
moveKeyToLast(
K key) → Map< K, V> -
Available on Map<
将指定的键K, V> , provided by the JunnyMapExtension extensionkey移动到 Map 的末尾。 -
otherDifference(
Map< K, V> other) → Map<K, V> -
Available on Map<
返回一个新 Map,包含K, V> , provided by the JunnyMapExtension extensionother中与当前 Map 比较后值不同的键值对。 -
removeKeys(
[Iterable< K> ? keys]) → Map<K, V> -
Available on Map<
返回一个新 Map,去除指定的一组键K, V> , provided by the JunnyMapExtension extensionkeys。 -
replaceKey(
K fromKey, [K? toKey]) → Map< K, V> -
Available on Map<
替换 Map 中的键K, V> , provided by the JunnyMapExtension extensionfromKey为toKey。 -
retainKeys(
[Iterable< K> ? keys]) → Map<K, V> -
Available on Map<
返回一个新 Map,仅保留指定的一组键K, V> , provided by the JunnyMapExtension extensionkeys。 -
thisDifference(
Map< K, V> other) → Map<K, V> -
Available on Map<
返回一个新 Map,包含当前 Map 中与K, V> , provided by the JunnyMapExtension extensionother比较后值不同的键值对。 -
withoutKey(
K key) → Map< K, V> -
Available on Map<
返回一个新 Map,去除指定的键K, V> , provided by the JunnyMapExtension extensionkey。