ObjMapExt<K, V> extension
Properties
-
entries
→ Iterable<
MapEntry< K, V> > -
Available on Obj<
The map entries ofMap< , provided by the ObjMapExt extensionK, V> >this
.no setter - isEmpty → bool
-
Available on Obj<
Whether there is no key/value pair in the map.Map< , provided by the ObjMapExt extensionK, V> >no setter - isNotEmpty → bool
-
Available on Obj<
Whether there is at least one key/value pair in the map.Map< , provided by the ObjMapExt extensionK, V> >no setter -
keys
→ Iterable<
K> -
Available on Obj<
The keys ofMap< , provided by the ObjMapExt extensionK, V> >this
.no setter - length → int
-
Available on Obj<
The number of key/value pairs in the map.Map< , provided by the ObjMapExt extensionK, V> >no setter -
values
→ Iterable<
V> -
Available on Obj<
The values ofMap< , provided by the ObjMapExt extensionK, V> >this
.no setter
Methods
-
addAll(
Map< K, V> other) → void -
Available on Obj<
Adds all key/value pairs ofMap< , provided by the ObjMapExt extensionK, V> >other
to this map. -
addEntries(
Iterable< MapEntry< newEntries) → voidK, V> > -
Available on Obj<
Adds all key/value pairs ofMap< , provided by the ObjMapExt extensionK, V> >newEntries
to this map. -
cast<
RK, RV> () → Map< RK, RV> -
Available on Obj<
Provides a view of this map as havingMap< , provided by the ObjMapExt extensionK, V> >RK
keys andRV
instances, if necessary. -
clear(
) → void -
Available on Obj<
Removes all entries from the map.Map< , provided by the ObjMapExt extensionK, V> > -
containsKey(
Object? key) → bool -
Available on Obj<
Whether this map contains the givenMap< , provided by the ObjMapExt extensionK, V> >key
. -
containsValue(
Object? valueToEvaluate) → bool -
Available on Obj<
Whether this map contains the given value.Map< , provided by the ObjMapExt extensionK, V> > -
forEach(
void action(K key, V value)) → void -
Available on Obj<
AppliesMap< , provided by the ObjMapExt extensionK, V> >action
to each key/value pair of the map. -
map<
K2, V2> (MapEntry< K2, V2> convert(K key, V value)) → Map<K2, V2> -
Available on Obj<
Returns a new map where all entries of this map are transformed by the givenMap< , provided by the ObjMapExt extensionK, V> >convert
function. -
putIfAbsent(
K key, V ifAbsent()) → V -
Available on Obj<
Look up the value ofMap< , provided by the ObjMapExt extensionK, V> >key
, or add a new entry if it isn't there. -
remove(
Object? key) → V? -
Available on Obj<
RemovesMap< , provided by the ObjMapExt extensionK, V> >key
and its associated value, if present, from the map. -
removeWhere(
bool test(K key, V value)) → void -
Available on Obj<
Removes all entries of this map that satisfy the givenMap< , provided by the ObjMapExt extensionK, V> >test
. -
updateAll(
V update(K key, V value)) → void -
Available on Obj<
Updates all values.Map< , provided by the ObjMapExt extensionK, V> > -
updateMap(
K key, V update(V value), {V ifAbsent()?}) → V -
Available on Obj<
Updates the value for the providedMap< , provided by the ObjMapExt extensionK, V> >key
.
Operators
-
operator [](
Object? key) → V? -
Available on Obj<
The value for the givenMap< , provided by the ObjMapExt extensionK, V> >key
, ornull
ifkey
is not in the map. -
operator []=(
K key, V valueToSet) → void -
Available on Obj<
Associates theMap< , provided by the ObjMapExt extensionK, V> >key
with the given value.