Package org.apache.pivot.collections
Class MapListener.Adapter<K,V>
- java.lang.Object
-
- org.apache.pivot.collections.MapListener.Adapter<K,V>
-
- Type Parameters:
K
- Type of key object used in this map.V
- Type of value object stored for each key.
- All Implemented Interfaces:
MapListener<K,V>
- Enclosing interface:
- MapListener<K,V>
@Deprecated public static final class MapListener.Adapter<K,V> extends java.lang.Object implements MapListener<K,V>
Deprecated.Since 2.1 and Java 8 the interface itself has default implementations.Map listener adapter.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.apache.pivot.collections.MapListener
MapListener.Adapter<K,V>, MapListener.Listeners<K,V>
-
-
Constructor Summary
Constructors Constructor Description Adapter()
Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description void
comparatorChanged(Map<K,V> map, java.util.Comparator<K> previousComparator)
Deprecated.Called when a map's comparator has changed.void
mapCleared(Map<K,V> map)
Deprecated.Called when map data has been reset.void
valueAdded(Map<K,V> map, K key)
Deprecated.Called when a key/value pair has been added to a map.void
valueRemoved(Map<K,V> map, K key, V value)
Deprecated.Called when a key/value pair has been removed from a map.void
valueUpdated(Map<K,V> map, K key, V previousValue)
Deprecated.Called when a map value has been updated.
-
-
-
Method Detail
-
valueAdded
public void valueAdded(Map<K,V> map, K key)
Deprecated.Description copied from interface:MapListener
Called when a key/value pair has been added to a map.- Specified by:
valueAdded
in interfaceMapListener<K,V>
- Parameters:
map
- The source of the map event.key
- The key that was added to the map.
-
valueUpdated
public void valueUpdated(Map<K,V> map, K key, V previousValue)
Deprecated.Description copied from interface:MapListener
Called when a map value has been updated.- Specified by:
valueUpdated
in interfaceMapListener<K,V>
- Parameters:
map
- The source of the map event.key
- The key whose value was updated.previousValue
- The value that was previously associated with the key.
-
valueRemoved
public void valueRemoved(Map<K,V> map, K key, V value)
Deprecated.Description copied from interface:MapListener
Called when a key/value pair has been removed from a map.- Specified by:
valueRemoved
in interfaceMapListener<K,V>
- Parameters:
map
- The source of the map event.key
- The key that was removed.value
- The value that was removed.
-
mapCleared
public void mapCleared(Map<K,V> map)
Deprecated.Description copied from interface:MapListener
Called when map data has been reset.- Specified by:
mapCleared
in interfaceMapListener<K,V>
- Parameters:
map
- The source of the map event.
-
comparatorChanged
public void comparatorChanged(Map<K,V> map, java.util.Comparator<K> previousComparator)
Deprecated.Description copied from interface:MapListener
Called when a map's comparator has changed.- Specified by:
comparatorChanged
in interfaceMapListener<K,V>
- Parameters:
map
- The source of the event.previousComparator
- The previous comparator value.
-
-