Package com.luciad.util.collections
Interface ILcdMap<K,V>
- All Superinterfaces:
Map<K,
V>
- All Known Implementing Classes:
TLcdHashMap
,TLcdKML22Parameters
An extension of the Java Map
which fires an TLcdMapEvent
for every entry that is added to or removed
from the map.
Due to those events, there is a decrease in performance compared to the traditional
Map
when adding and/or removing multiple entries at once (e.g. Map.putAll(java.util.Map)
or Map.clear()
). For every entry
that is added or removed, those methods should fire an individual event.
- Since:
- 10.0
- See Also:
-
Nested Class Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addMapListener
(ILcdMapListener<K, V> aMapListener) Register the listeneraMapListener
to be informed about changes in this map.void
removeMapListener
(ILcdMapListener<K, V> aMapListener) Unregister the listeneraMapListener
so it will no longer be informed about changes in this map.Methods inherited from interface java.util.Map
clear, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, entrySet, equals, forEach, get, getOrDefault, hashCode, isEmpty, keySet, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll, size, values
-
Method Details
-
addMapListener
Register the listener
aMapListener
to be informed about changes in this map.- Parameters:
aMapListener
- the listener- See Also:
-
removeMapListener
Unregister the listener
aMapListener
so it will no longer be informed about changes in this map.This method should do nothing when
addMapListener
was not registered previously.- Parameters:
aMapListener
- the listener- See Also:
-