Package com.ultikits.ultitools.config
Enum Class OperatorFiles.WriteResult
- All Implemented Interfaces:
Serializable,Comparable<OperatorFiles.WriteResult>,java.lang.constant.Constable
- Enclosing class:
OperatorFiles
What
OperatorFiles.write(Snapshot, Map) did.-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionThe file no longer holds the snapshot's bytes (edited, replaced or deleted since it was read); nothing was written.Writing the keys would have changed something else in the file - a layout the renderer cannot keep byte for byte, YAML anchors, aliases or merge keys - or the file cannot be parsed; nothing was written, and one WARNING in the server log names the file, the keys and the reason.The file already holds those values; nothing was written.The named keys were written; nothing else in the file changed. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic OperatorFiles.WriteResultReturns the enum constant of this class with the specified name.static OperatorFiles.WriteResult[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
WRITTEN
The named keys were written; nothing else in the file changed. -
UNCHANGED
The file already holds those values; nothing was written. -
FILE_CHANGED
The file no longer holds the snapshot's bytes (edited, replaced or deleted since it was read); nothing was written. -
REFUSED
Writing the keys would have changed something else in the file - a layout the renderer cannot keep byte for byte, YAML anchors, aliases or merge keys - or the file cannot be parsed; nothing was written, and one WARNING in the server log names the file, the keys and the reason.
-
-
Constructor Details
-
WriteResult
private WriteResult()
-
-
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
-