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 TypeMethodDescriptionvoidaddMapListener(ILcdMapListener<K, V> aMapListener) Register the listeneraMapListenerto be informed about changes in this map.voidremoveMapListener(ILcdMapListener<K, V> aMapListener) Unregister the listeneraMapListenerso 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
aMapListenerto be informed about changes in this map.- Parameters:
aMapListener- the listener- See Also:
-
removeMapListener
Unregister the listener
aMapListenerso it will no longer be informed about changes in this map.This method should do nothing when
addMapListenerwas not registered previously.- Parameters:
aMapListener- the listener- See Also:
-