Enum Class LDValueType

java.lang.Object
java.lang.Enum<LDValueType>
com.launchdarkly.sdk.LDValueType
All Implemented Interfaces:
Serializable, Comparable<LDValueType>, Constable

public enum LDValueType extends Enum<LDValueType>
Describes the type of an LDValue. These correspond to the standard types in JSON.
  • Enum Constant Details

    • NULL

      public static final LDValueType NULL
      The value is null.
    • BOOLEAN

      public static final LDValueType BOOLEAN
      The value is a boolean.
    • NUMBER

      public static final LDValueType NUMBER
      The value is numeric. JSON does not have separate types for integers and floating-point values, but you can convert to either.
    • STRING

      public static final LDValueType STRING
      The value is a string.
    • ARRAY

      public static final LDValueType ARRAY
      The value is an array.
    • OBJECT

      public static final LDValueType OBJECT
      The value is an object (map).
  • Method Details

    • values

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

      public static LDValueType valueOf(String name)
      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 name
      NullPointerException - if the argument is null