- java.lang.Object
-
- java.lang.Enum<ConfigChangeType>
-
- net.morimekta.config.ConfigChangeType
-
- All Implemented Interfaces:
Serializable,Comparable<ConfigChangeType>
public enum ConfigChangeType extends Enum<ConfigChangeType>
Types of changes on config content.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Stringaction()One of 'creating', 'modifying' or 'deleting'.Stringcapitalized()One of 'Created', 'Modified' or 'Deleted'.StringcapitalizedAction()One of 'Creating', 'Modifying' or 'Deleting'.Stringlowercase()One of 'created', 'modified' or 'deleted'.static ConfigChangeTypevalueOf(String name)Returns the enum constant of this type with the specified name.static ConfigChangeType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
CREATED
public static final ConfigChangeType CREATED
The config entry has just been created.
-
MODIFIED
public static final ConfigChangeType MODIFIED
The config entry has been modified from a previously known state.
-
DELETED
public static final ConfigChangeType DELETED
The config entry has been deleted.
-
-
Method Detail
-
values
public static ConfigChangeType[] 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 (ConfigChangeType c : ConfigChangeType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ConfigChangeType 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
-
lowercase
public String lowercase()
One of 'created', 'modified' or 'deleted'.- Returns:
- The config change name as lowercase.
-
capitalized
public String capitalized()
One of 'Created', 'Modified' or 'Deleted'.- Returns:
- The config change name, capitalized, for e.g. where needed first in sentence.
-
action
public String action()
One of 'creating', 'modifying' or 'deleting'.- Returns:
- The config action (as lowercase).
-
capitalizedAction
public String capitalizedAction()
One of 'Creating', 'Modifying' or 'Deleting'.- Returns:
- The config action, capitalized, for e.g. where needed first in sentence.
-
-