Enum Class ValueType

java.lang.Object
java.lang.Enum<ValueType>
io.ably.lib.liveobjects.ValueType
All Implemented Interfaces:
Serializable, Comparable<ValueType>, Constable

public enum ValueType extends Enum<ValueType>
The type of a value resolved by a PathObject or wrapped by an Instance in the LiveObjects graph.

Spec: RTTS2

  • Enum Constant Details

    • STRING

      public static final ValueType STRING
      Corresponds to the String primitive. Spec: RTTS2a1
    • NUMBER

      public static final ValueType NUMBER
      Corresponds to the Number primitive. Spec: RTTS2a2
    • BOOLEAN

      public static final ValueType BOOLEAN
      Corresponds to the Boolean primitive. Spec: RTTS2a3
    • BINARY

      public static final ValueType BINARY
      Corresponds to the Binary primitive. Spec: RTTS2a4
    • JSON_OBJECT

      public static final ValueType JSON_OBJECT
      Corresponds to the JsonObject primitive. Spec: RTTS2a5
    • JSON_ARRAY

      public static final ValueType JSON_ARRAY
      Corresponds to the JsonArray primitive. Spec: RTTS2a6
    • LIVE_MAP

      public static final ValueType LIVE_MAP
      Corresponds to a LiveMap object. Spec: RTTS2a7
    • LIVE_COUNTER

      public static final ValueType LIVE_COUNTER
      Corresponds to a LiveCounter object. Spec: RTTS2a8
    • UNKNOWN

      public static final ValueType UNKNOWN
      Returned by PathObject#getType() only when a value is present but matches none of the known types. Never produced by an Instance in normal operation. Spec: RTTS2a9
  • Method Details

    • values

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