displayablecollections
Enum ChangeNotification.ChangeType

java.lang.Object
  extended by java.lang.Enum<ChangeNotification.ChangeType>
      extended by displayablecollections.ChangeNotification.ChangeType
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<ChangeNotification.ChangeType>
Enclosing interface:
ChangeNotification

public static enum ChangeNotification.ChangeType
extends java.lang.Enum<ChangeNotification.ChangeType>

The type of change made to a displayable collection or map by operation on it.


Enum Constant Summary
CLEARED
          The entire collection/map was cleared by clear()
ELEMENT_ADDED
          An item was added to the collection or map by add() or put()
ELEMENT_MODIFIED
          An existing element of a list was modifed by set(), or an existing value in a map was replaced by a new value by put()
ELEMENT_REMOVED
          An item was removed from the collection or map by remove()
 
Method Summary
static ChangeNotification.ChangeType valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static ChangeNotification.ChangeType[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

CLEARED

public static final ChangeNotification.ChangeType CLEARED
The entire collection/map was cleared by clear()


ELEMENT_ADDED

public static final ChangeNotification.ChangeType ELEMENT_ADDED
An item was added to the collection or map by add() or put()


ELEMENT_REMOVED

public static final ChangeNotification.ChangeType ELEMENT_REMOVED
An item was removed from the collection or map by remove()


ELEMENT_MODIFIED

public static final ChangeNotification.ChangeType ELEMENT_MODIFIED
An existing element of a list was modifed by set(), or an existing value in a map was replaced by a new value by put()

Method Detail

values

public static ChangeNotification.ChangeType[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (ChangeNotification.ChangeType c : ChangeNotification.ChangeType.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static ChangeNotification.ChangeType valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
java.lang.NullPointerException - if the argument is null