Interface StrictMap<K,V>
- All Superinterfaces:
com.google.gwt.user.client.rpc.IsSerializable
,ReadOnlyStrictMap<K,
,V> Serializable
- All Known Implementing Classes:
StrictMapImpl
Map backed by
LinkedHashMap
.
"Strict" means that it does not allow null keys, and that all methods use generics unlike for example Map.containsKey(Object)
- Since:
- 3.9.0
-
Method Summary
Modifier and TypeMethodDescriptionvoid
clear()
void
putAll
(ReadOnlyStrictMap<? extends K, ? extends V> m) void
void
removeValueIfSame
(V value) Removes the first mapping having the same value found by iterating over theReadOnlyStrictMap.entrySet()
, the value must be the same instance as the one contained in the map, so the equals() is NOT called by this method on the values.Methods inherited from interface com.polarion.alm.shared.api.utils.collections.ReadOnlyStrictMap
asMap, containsKey, containsValue, entrySet, findKeyForValueIfSame, get, isEmpty, keySet, putAllTo, size, toImmutable, toMap, values
-
Method Details
-
put
-
remove
-
removeAll
-
removeValueIfSame
Removes the first mapping having the same value found by iterating over theReadOnlyStrictMap.entrySet()
, the value must be the same instance as the one contained in the map, so the equals() is NOT called by this method on the values. SeeReadOnlyStrictMap.findKeyForValueIfSame(Object)
- Parameters:
value
- - value to be removed. It is removed only if it is the same instance.- Returns:
- key associated with this value if it was found
-
putAll
-
clear
void clear()
-