Package ninja.leaping.configurate
Enum ValueType
- java.lang.Object
-
- java.lang.Enum<ValueType>
-
- ninja.leaping.configurate.ValueType
-
- All Implemented Interfaces:
Serializable
,Comparable<ValueType>
@Deprecated public enum ValueType extends Enum<ValueType>
Deprecated.UseConfigurationNode.isList()
andConfigurationNode.isMap()
for the same informationAn enumeration of the types of value aConfigurationNode
can hold.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description LIST
Deprecated.Represents a node that consists of a number of child values, in a specific order, each mapped by an index value.MAP
Deprecated.Represents a node that consists of a number of child values, each mapped by a unique key.NULL
Deprecated.Represents a node that has no defined value.SCALAR
Deprecated.Represents a node that consists of a "single" scalar value
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description boolean
canHaveChildren()
Deprecated.Gets if the type can hold child values.static ValueType
valueOf(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 Detail
-
SCALAR
public static final ValueType SCALAR
Deprecated.Represents a node that consists of a "single" scalar value
-
MAP
public static final ValueType MAP
Deprecated.Represents a node that consists of a number of child values, each mapped by a unique key.
-
LIST
public static final ValueType LIST
Deprecated.Represents a node that consists of a number of child values, in a specific order, each mapped by an index value.
-
-
Method Detail
-
values
public static ValueType[] values()
Deprecated.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 (ValueType c : ValueType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ValueType valueOf(String name)
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
public boolean canHaveChildren()
Deprecated.Gets if the type can hold child values.- Returns:
- If the type can have children
-
-