Package groovy.util
Enum Class ObservableList.ChangeType
- All Implemented Interfaces:
Serializable,Comparable<ObservableList.ChangeType>,Constable
- Enclosing class:
- ObservableList
Enumerates the specialized list change events.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum Constants -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic ObservableList.ChangeTyperesolve(int ordinal) Resolves an enum constant from its ordinal.static ObservableList.ChangeTypeReturns the enum constant of this class with the specified name.static ObservableList.ChangeType[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
ADDED
A single element was added. -
UPDATED
A single element was updated. -
REMOVED
A single element was removed. -
CLEARED
The list was cleared. -
MULTI_ADD
Multiple elements were added. -
MULTI_REMOVE
Multiple elements were removed. -
NONE
No specialized change type applies.
-
-
Field Details
-
oldValue
Placeholder old value for aggregated events. -
newValue
Placeholder new value for aggregated events.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException- if the argument is null
-
resolve
Resolves an enum constant from its ordinal.- Parameters:
ordinal- the serialized ordinal value- Returns:
- the matching change type
-