displayablecollections
Interface DisplayableMap.MapChangedNotification<K,V>

All Superinterfaces:
ChangeNotification
Enclosing interface:
DisplayableMap<K,V>

public static interface DisplayableMap.MapChangedNotification<K,V>
extends ChangeNotification

An object that implements this interface encapsulates information about changes to an DisplayableMap Such an object will be the second parameter when the update() method of an Observer is called following a change to this DisplayableList.


Nested Class Summary
 
Nested classes/interfaces inherited from interface displayablecollections.ChangeNotification
ChangeNotification.ChangeType
 
Method Summary
 java.util.Map.Entry<K,V> getEntry()
          Accessor for the entry involved in the change
 K getKey()
          Accessor for the key component of the entry affected
 ChangeNotification.ChangeType getType()
          Accessor for the type of change denoted by this object.
 V getValue()
          Accessor for information about the value of the entry involved in the change
 

Method Detail

getType

ChangeNotification.ChangeType getType()
Accessor for the type of change denoted by this object.

Specified by:
getType in interface ChangeNotification
Returns:
the type of change made to the collection

getEntry

java.util.Map.Entry<K,V> getEntry()
Accessor for the entry involved in the change

Returns:
null for CLEARED; the entry that was removed for ELEMENT_REMOVED; the entry that was added for ELEMENT_ADDED; the updated entry for ELEMENT_MODIFIED.

getKey

K getKey()
Accessor for the key component of the entry affected

Returns:
null for CLEARED; the key of the entry affected for all other types of change

getValue

V getValue()
Accessor for information about the value of the entry involved in the change

Returns:
null for CLEARED; the value part of the entry that was removed for ELEMENT_REMOVED; the value part of the entry that was added for ELEMENT_ADDED; the new value in the entry for ELEMENT_MODFIED.