- java.lang.Object
-
- java.lang.Enum<ConfigEventListener.Status>
-
- net.morimekta.config.ConfigEventListener.Status
-
- All Implemented Interfaces:
Serializable,Comparable<ConfigEventListener.Status>
- Enclosing interface:
- ConfigEventListener
public static enum ConfigEventListener.Status extends Enum<ConfigEventListener.Status>
The status of the event.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ERRORError on config change update.OKThe operation succeeded.PARSE_FAILEDParsing a config file failed.READ_FAILEDReading a config file failed.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ConfigEventListener.StatusvalueOf(String name)Returns the enum constant of this type with the specified name.static ConfigEventListener.Status[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
OK
public static final ConfigEventListener.Status OK
The operation succeeded.
-
READ_FAILED
public static final ConfigEventListener.Status READ_FAILED
Reading a config file failed.
-
PARSE_FAILED
public static final ConfigEventListener.Status PARSE_FAILED
Parsing a config file failed.
-
ERROR
public static final ConfigEventListener.Status ERROR
Error on config change update.
-
-
Method Detail
-
values
public static ConfigEventListener.Status[] 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 (ConfigEventListener.Status c : ConfigEventListener.Status.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ConfigEventListener.Status 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
-
-