Package com.ultikits.ultitools.manager
Enum Class ServerPropertiesManager.WriteOutcome
java.lang.Object
java.lang.Enum<ServerPropertiesManager.WriteOutcome>
com.ultikits.ultitools.manager.ServerPropertiesManager.WriteOutcome
- All Implemented Interfaces:
Serializable,Comparable<ServerPropertiesManager.WriteOutcome>,java.lang.constant.Constable
- Enclosing class:
ServerPropertiesManager
private static enum ServerPropertiesManager.WriteOutcome
extends Enum<ServerPropertiesManager.WriteOutcome>
What actually happened to one key.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionOn the whitelist and present in the file, but reading or writing the file failed.OnServerPropertiesManager.SAFE_KEYS(a ceiling across every Paper version this framework supports), but the running server's ownserver.propertieshas no such key -- either an older or newer Paper version than the one that added it, or a file that omits it; the two cannot be told apart (#473).Not onServerPropertiesManager.SAFE_KEYS; never attempted.Written to disk. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the enum constant of this class with the specified name.static ServerPropertiesManager.WriteOutcome[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
WRITTEN
Written to disk. -
REJECTED
Not onServerPropertiesManager.SAFE_KEYS; never attempted. -
NOT_PRESENT_ON_THIS_SERVER
OnServerPropertiesManager.SAFE_KEYS(a ceiling across every Paper version this framework supports), but the running server's ownserver.propertieshas no such key -- either an older or newer Paper version than the one that added it, or a file that omits it; the two cannot be told apart (#473). Writing it anyway could be silently ignored by the platform, so this is refused rather than written (D-15, SAFE_KEYS issue). -
FAILED
On the whitelist and present in the file, but reading or writing the file failed.
-
-
Constructor Details
-
WriteOutcome
private WriteOutcome()
-
-
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
-