Package io.ably.lib.liveobjects
Enum Class ValueType
- All Implemented Interfaces:
-
Serializable,Comparable<ValueType>,Constable
The type of a value resolved by a
PathObject or wrapped by an
Instance in the LiveObjects graph.
Spec: RTTS2
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionCorresponds to theBinaryprimitive.Corresponds to theBooleanprimitive.Corresponds to theJsonArrayprimitive.Corresponds to theJsonObjectprimitive.Corresponds to aLiveCounterobject.Corresponds to aLiveMapobject.Corresponds to theNumberprimitive.Corresponds to theStringprimitive.Returned byPathObject#getType()only when a value is present but matches none of the known types. -
Method Summary
-
Enum Constant Details
-
STRING
Corresponds to theStringprimitive. Spec: RTTS2a1 -
NUMBER
Corresponds to theNumberprimitive. Spec: RTTS2a2 -
BOOLEAN
Corresponds to theBooleanprimitive. Spec: RTTS2a3 -
BINARY
Corresponds to theBinaryprimitive. Spec: RTTS2a4 -
JSON_OBJECT
Corresponds to theJsonObjectprimitive. Spec: RTTS2a5 -
JSON_ARRAY
Corresponds to theJsonArrayprimitive. Spec: RTTS2a6 -
LIVE_MAP
Corresponds to aLiveMapobject. Spec: RTTS2a7 -
LIVE_COUNTER
Corresponds to aLiveCounterobject. Spec: RTTS2a8 -
UNKNOWN
Returned byPathObject#getType()only when a value is present but matches none of the known types. Never produced by anInstancein normal operation. Spec: RTTS2a9
-
-
Method Details
-
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
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
-