Package ninja.leaping.configurate
Enum ValueType
- All Implemented Interfaces:
Serializable,Comparable<ValueType>,java.lang.constant.Constable
@Deprecated public enum ValueType extends Enum<ValueType>
Deprecated.
Use
ConfigurationNode.isList() and ConfigurationNode.isMap() for the same informationAn enumeration of the types of value a
ConfigurationNode can hold.-
Nested Class Summary
-
Enum Constant Summary
Enum Constants Enum Constant Description LISTDeprecated.Represents a node that consists of a number of child values, in a specific order, each mapped by an index value.MAPDeprecated.Represents a node that consists of a number of child values, each mapped by a unique key.NULLDeprecated.Represents a node that has no defined value.SCALARDeprecated.Represents a node that consists of a "single" scalar value -
Method Summary
Modifier and Type Method Description booleancanHaveChildren()Deprecated.Gets if the type can hold child values.static ValueTypevalueOf(String name)Deprecated.Returns the enum constant of this type with the specified name.static ValueType[]values()Deprecated.Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
SCALAR
Deprecated.Represents a node that consists of a "single" scalar value -
MAP
Deprecated.Represents a node that consists of a number of child values, each mapped by a unique key. -
LIST
Deprecated.Represents a node that consists of a number of child values, in a specific order, each mapped by an index value. -
NULL
Deprecated.Represents a node that has no defined value.
-
-
Method Details
-
values
Deprecated.Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Deprecated.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
-
canHaveChildren
Deprecated.Gets if the type can hold child values.- Returns:
- If the type can have children
-