Enum ValueType

java.lang.Object
java.lang.Enum<ValueType>
ninja.leaping.configurate.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 information
An enumeration of the types of value a ConfigurationNode can hold.
  • Nested Class Summary

    Nested classes/interfaces inherited from class java.lang.Enum

    Enum.EnumDesc<E extends Enum<E>>
  • 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

    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.

    Methods inherited from class java.lang.Object

    getClass, notify, notifyAll, wait, wait, wait
  • Enum Constant Details

    • 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.
    • NULL

      public static final ValueType NULL
      Deprecated.
      Represents a node that has no defined value.
  • Method Details

    • values

      public static ValueType[] 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

      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 name
      NullPointerException - 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