Package org.arakhne.afc.attrs.collection
Enum AttributeChangeEvent.Type
- java.lang.Object
-
- java.lang.Enum<AttributeChangeEvent.Type>
-
- org.arakhne.afc.attrs.collection.AttributeChangeEvent.Type
-
- All Implemented Interfaces:
Serializable
,Comparable<AttributeChangeEvent.Type>
- Enclosing class:
- AttributeChangeEvent
public static enum AttributeChangeEvent.Type extends Enum<AttributeChangeEvent.Type>
This interface representes a listener on the attribute changes.- Version:
- 17.0 2020-01-04 14:41:51
- Author:
- Stéphane GALLAND
- Maven Group Id:
- org.arakhne.afc.advanced
- Maven Artifact Id:
- attributes
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ADDITION
an attribute was added.REMOVAL
An attribute was removed.REMOVE_ALL
All attributes were removed.RENAME
An attribute was renamed.VALUE_UPDATE
An attribute value has changed.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static AttributeChangeEvent.Type
valueOf(String name)
Returns the enum constant of this type with the specified name.static AttributeChangeEvent.Type[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
VALUE_UPDATE
public static final AttributeChangeEvent.Type VALUE_UPDATE
An attribute value has changed.
-
REMOVAL
public static final AttributeChangeEvent.Type REMOVAL
An attribute was removed.
-
ADDITION
public static final AttributeChangeEvent.Type ADDITION
an attribute was added.
-
RENAME
public static final AttributeChangeEvent.Type RENAME
An attribute was renamed.
-
REMOVE_ALL
public static final AttributeChangeEvent.Type REMOVE_ALL
All attributes were removed.
-
-
Method Detail
-
values
public static AttributeChangeEvent.Type[] 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 (AttributeChangeEvent.Type c : AttributeChangeEvent.Type.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static AttributeChangeEvent.Type valueOf(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:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
-