MapExtensions<K, V> extension

on

Methods

any(KeyValuePredicate<K, V> p) bool

Available on Map<K, V>, provided by the MapExtensions extension

anyKey(Predicate<K> p) bool

Available on Map<K, V>, provided by the MapExtensions extension

anyValue(Predicate<V> p) bool

Available on Map<K, V>, provided by the MapExtensions extension

fold<T>(T initialValue, T combine(T previousValue, MapEntry<K, V> element)) → T

Available on Map<K, V>, provided by the MapExtensions extension

Reduces the Map to a single value by iteratively combining combine each key/value pair entry in the Map with an existing value initialValue.
reduce(MapEntry<K, V> combine(MapEntry<K, V> accumulator, MapEntry<K, V> entry)) MapEntry<K, V>

Available on Map<K, V>, provided by the MapExtensions extension

Reduces the Map to a single key/value pair MapEntry by iteratively combining combine each entry of the Map into an accumulator.
valueFor(K key) → V?

Available on Map<K, V>, provided by the MapExtensions extension

The value for the given key, or null if key is not in the map.
valuesForKeys(Iterable<K> keys) Iterable<V>

Available on Map<K, V>, provided by the MapExtensions extension

Returns an list of values for the given list of keys.
where(KeyValuePredicate<K, V> p) Map<K, V>

Available on Map<K, V>, provided by the MapExtensions extension

Returns a new Map by filtering its entries using the given predicate.
whereKey(Predicate<K> p) Map<K, V>

Available on Map<K, V>, provided by the MapExtensions extension

Returns a new Map by filtering its keys using the given predicate.
whereValue(Predicate<V> p) Map<K, V>

Available on Map<K, V>, provided by the MapExtensions extension

Returns a new Map by filtering its values using the given predicate.