Interface BinaryInstance
- All Superinterfaces:
Instance
A read-only
Instance bound to a binary primitive value
(a byte[]).
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.JsonPrimitiveReturns the compacted JSON snapshot of the wrapped value, narrowed to aJsonPrimitive: binary compacts to a base64-encoded JSON string.byte @NotNull []value()Returns the wrapped binary value.Methods inherited from interface io.ably.lib.liveobjects.instance.Instance
asBinary, asBoolean, asJsonArray, asJsonObject, asLiveCounter, asLiveMap, asNumber, asString, getType
-
Method Details
-
value
byte @NotNull [] value()Returns the wrapped binary value.Spec: RTINS4 / RTTS10c
- Returns:
- the wrapped bytes
-
compactJson
@NotNull @NotNull com.google.gson.JsonPrimitive compactJson()Returns the compacted JSON snapshot of the wrapped value, narrowed to aJsonPrimitive: binary compacts to a base64-encoded JSON string.Spec: RTTS7a
- Specified by:
-
compactJsonin interfaceInstance - Returns:
- the compacted JSON primitive
-