MapExtensions<K, V> extension
- on
-
- Map<
K, V>
- Map<
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<
Reduces the Map to a single value by iteratively combiningK, V> , provided by the MapExtensions extensioncombine
each key/value pairentry
in the Map with an existing valueinitialValue
. -
reduce(
MapEntry< K, V> combine(MapEntry<K, V> accumulator, MapEntry<K, V> entry)) → MapEntry<K, V> -
Available on Map<
Reduces the Map to a single key/value pair MapEntry by iteratively combiningK, V> , provided by the MapExtensions extensioncombine
eachentry
of the Map into anaccumulator
. -
valueFor(
K key) → V? -
Available on Map<
The value for the givenK, V> , provided by the MapExtensions extensionkey
, ornull
ifkey
is not in the map. -
valuesForKeys(
Iterable< K> keys) → Iterable<V> -
Available on Map<
Returns an list of values for the given list of keys.K, V> , provided by the MapExtensions extension -
where(
KeyValuePredicate< K, V> p) → Map<K, V> -
Available on Map<
Returns a new Map by filtering its entries using the given predicate.K, V> , provided by the MapExtensions extension -
whereKey(
Predicate< K> p) → Map<K, V> -
Available on Map<
Returns a new Map by filtering its keys using the given predicate.K, V> , provided by the MapExtensions extension -
whereValue(
Predicate< V> p) → Map<K, V> -
Available on Map<
Returns a new Map by filtering its values using the given predicate.K, V> , provided by the MapExtensions extension