Maps<K, V> extension
Provides functions for working with Maps.
- on
-
- Map<
K, V>
- Map<
Methods
-
inverse(
) → Map< V, List< K> > - Inverts this map with keys becoming values and vice versa.
-
putAll(
Map< K, V> other, {required V resolve(K key, V existing, V other)}) → void -
Available on Map<
Adds all entries inK, V> , provided by the Maps extensionother
to this map, usingresolve
to resolve conflicting entries. -
rekey<
K1> (K1 convert(K key)) → Map< K1, V> -
Available on Map<
Returns a copy of this map with its keys transformed usingK, V> , provided by the Maps extensionconvert
. -
retainWhere(
bool predicate(K key, V value)) → void -
Available on Map<
Retains all entries that satisfy the givenK, V> , provided by the Maps extensionpredicate
. -
revalue<
V1> (V1 convert(V value)) → Map< K, V1> -
Available on Map<
Returns a copy of this map with its values transformed usingK, V> , provided by the Maps extensionconvert
. -
where(
bool predicate(K key, V value)) → Map< K, V> - Eagerly returns a map with only entries that satisfy the given predicate.