public interface ListenerMap<K,V> extends Map<K,V>
Interface of a map able to fire a property event whenever its data gets modified. The old/new value fields of the event must be filled according to the following system:
Map.put(java.lang.Object, java.lang.Object)
method, the property name field must be key.toString()
, the old value field must be set to null and the new value field to the new value.Map.put(java.lang.Object, java.lang.Object)
method, the property name field must be key.toString()
and the old/new value fileds should reflect the old and new value.Map.putAll(java.util.Map)
, the property name
must be an empty string, old value must be null and new value should be the map of inserted values.Map.clear()
method, the property name
must be an empty string, old value must be a reference to this map and the new value must be set to null.T-Plan Robot Enterprise, (C) 2009-2022 T-Plan Limited. All rights reserved.
Modifier and Type | Method and Description |
---|---|
void |
addPropertyChangeListener(PropertyChangeListener listener) |
void |
removePropertyChangeListener(PropertyChangeListener listener) |
void |
removePropertyChangeListeners() |
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
void addPropertyChangeListener(PropertyChangeListener listener)
void removePropertyChangeListener(PropertyChangeListener listener)
void removePropertyChangeListeners()