Enum ConfigSpec.CorrectionAction
- java.lang.Object
-
- java.lang.Enum<ConfigSpec.CorrectionAction>
-
- com.electronwill.nightconfig.core.ConfigSpec.CorrectionAction
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<ConfigSpec.CorrectionAction>
- Enclosing class:
- ConfigSpec
public static enum ConfigSpec.CorrectionAction extends java.lang.Enum<ConfigSpec.CorrectionAction>
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ConfigSpec.CorrectionActionvalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static ConfigSpec.CorrectionAction[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
ADD
public static final ConfigSpec.CorrectionAction ADD
Means that the value was added to the config. In that case,incorrectValueisnull.
-
REPLACE
public static final ConfigSpec.CorrectionAction REPLACE
Means that the value was replaced. In that case,incorrectValueand/orcorrectedValuemay benull.
-
REMOVE
public static final ConfigSpec.CorrectionAction REMOVE
Means that the value was removed from the config. In that case,correctedValueisnull.
-
-
Method Detail
-
values
public static ConfigSpec.CorrectionAction[] 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 (ConfigSpec.CorrectionAction c : ConfigSpec.CorrectionAction.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ConfigSpec.CorrectionAction valueOf(java.lang.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:
java.lang.IllegalArgumentException- if this enum type has no constant with the specified namejava.lang.NullPointerException- if the argument is null
-
-