Interface JsonObjectInstance
- All Superinterfaces:
Instance
A read-only
Instance bound to a JsonObject primitive value.
Primitive instances are anonymous (no object id) and deliberately do not expose
subscribe, set, remove or any other id/iteration/write
methods - only value() - per RTTS10c.
Spec: RTTS10c
-
Method Summary
Modifier and TypeMethodDescription@NotNull com.google.gson.JsonObjectReturns the compacted JSON snapshot of the wrapped value, narrowed to aJsonObject: aJsonObjectInstancealways compacts to a JSON object.@NotNull com.google.gson.JsonObjectvalue()Returns the wrapped JSON object.Methods inherited from interface io.ably.lib.liveobjects.instance.Instance
asBinary, asBoolean, asJsonArray, asJsonObject, asLiveCounter, asLiveMap, asNumber, asString, getType
-
Method Details
-
value
@NotNull @NotNull com.google.gson.JsonObject value()Returns the wrapped JSON object.Spec: RTINS4 / RTTS10c
- Returns:
- the wrapped JsonObject value
-
compactJson
@NotNull @NotNull com.google.gson.JsonObject compactJson()Returns the compacted JSON snapshot of the wrapped value, narrowed to aJsonObject: aJsonObjectInstancealways compacts to a JSON object.Spec: RTTS7a
- Specified by:
-
compactJsonin interfaceInstance - Returns:
- the compacted JSON object
-