Package de.espirit.firstspirit.storage
Enum Class DataChangeDetail.ChangeFlag
java.lang.Object
java.lang.Enum<DataChangeDetail.ChangeFlag>
de.espirit.firstspirit.storage.DataChangeDetail.ChangeFlag
- All Implemented Interfaces:
Serializable
,Comparable<DataChangeDetail.ChangeFlag>
,Constable
- Enclosing interface:
- DataChangeDetail
Flag identifiying the change type.
- Since:
- 4.0.90
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionIndicates that a change was detected because an element (editor, language) was added during the modification.Indicates that a change was detected because an element (editor, language) was changed during the modification.Indicates that a change was detected because an element (editor, language) was removed during the modification. -
Method Summary
Modifier and TypeMethodDescriptionstatic DataChangeDetail.ChangeFlag
forTypeChar
(char c) Determines the change flag corresponding to the given identifying character.char
Provides an identifying character for a change flag.static DataChangeDetail.ChangeFlag
Returns the enum constant of this class with the specified name.static DataChangeDetail.ChangeFlag[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
ADDED
Indicates that a change was detected because an element (editor, language) was added during the modification.- Since:
- 4.0.90
-
REMOVED
Indicates that a change was detected because an element (editor, language) was removed during the modification.- Since:
- 4.0.90
-
CHANGED
Indicates that a change was detected because an element (editor, language) was changed during the modification.- Since:
- 4.0.90
-
-
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
-
getTypeChar
public char getTypeChar()Provides an identifying character for a change flag.- Returns:
- A character.
- Since:
- 4.0.90
-
forTypeChar
Determines the change flag corresponding to the given identifying character.- Parameters:
c
- The character.- Returns:
- The corresponding flag.
- Throws:
IllegalArgumentException
- if the character does not correspond to a flag.- Since:
- 4.0.90
-