Enum Class SettingChangeResult.Status
java.lang.Object
java.lang.Enum<SettingChangeResult.Status>
dev.itsharshxd.zentrix.api.settings.SettingChangeResult.Status
- All Implemented Interfaces:
Serializable,Comparable<SettingChangeResult.Status>,Constable
- Enclosing class:
SettingChangeResult
What a setting change did.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionsettings.ymlcould not be written; nothing changed.The value was refused; seeSettingChangeResult.reason().Saved tosettings.ymland applied to the running server.Saved, but refreshing the running server afterwards failed; it applies after a restart.The setting already held this value; nothing was written.No editable setting has this path. -
Method Summary
Modifier and TypeMethodDescriptionstatic SettingChangeResult.StatusReturns the enum constant of this class with the specified name.static SettingChangeResult.Status[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
SAVED
Saved tosettings.ymland applied to the running server. -
UNCHANGED
The setting already held this value; nothing was written. -
SAVED_NOT_APPLIED
Saved, but refreshing the running server afterwards failed; it applies after a restart. -
INVALID
The value was refused; seeSettingChangeResult.reason(). -
UNKNOWN_SETTING
No editable setting has this path. -
FAILED
settings.ymlcould not be written; nothing changed.
-
-
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
-