DHUMapExtension<K, V> extension
DHUMapExtension
- on
-
- Map<
K, V>
- Map<
Methods
-
filter(
bool predicate(K key, V value)) → Map< K, V> -
Available on Map<
Filters the map, retaining only entries that satisfy the given predicate.K, V> , provided by the DHUMapExtension extension -
keysWhere(
bool condition(V)) → Iterable< K> -
Available on Map<
Returns an iterable of keys where the associated values satisfy the given condition.K, V> , provided by the DHUMapExtension extension -
mapValues<
V2> (V2 transform(V)) → Map< K, V2> -
Available on Map<
Transforms the values in this map using the given function.K, V> , provided by the DHUMapExtension extension -
setIfMissing(
K key, V value) → V -
Available on Map<
Inserts a key-value pair into the map if the key does not already exist.K, V> , provided by the DHUMapExtension extension -
swapKeysWithValues(
) → Map< V, K> -
Available on Map<
Swaps the keys with values in the map. Note: If there are duplicate values, the last key-value pair will be kept.K, V> , provided by the DHUMapExtension extension