-
public abstract class LiveMapValueAbstract class representing the union type for LiveMap values. Provides strict compile-time type safety, implementation is similar to Gson's JsonElement pattern. Spec: RTO11a1 - Boolean | Binary | Number | String | JsonArray | JsonObject | LiveCounter | LiveMap
-
-
Method Summary
Modifier and Type Method Description abstract ObjectgetValue()Gets the underlying value. booleanisBoolean()Returns true if this LiveMapValue represents a Boolean value. booleanisBinary()Returns true if this LiveMapValue represents a Binary value. booleanisNumber()Returns true if this LiveMapValue represents a Number value. booleanisString()Returns true if this LiveMapValue represents a String value. booleanisJsonArray()Returns true if this LiveMapValue represents a JsonArray value. booleanisJsonObject()Returns true if this LiveMapValue represents a JsonObject value. booleanisLiveCounter()Returns true if this LiveMapValue represents a LiveCounter value. booleanisLiveMap()Returns true if this LiveMapValue represents a LiveMap value. BooleangetAsBoolean()Gets the Boolean value if this LiveMapValue represents a Boolean. Array<byte>getAsBinary()Gets the Binary value if this LiveMapValue represents a Binary. NumbergetAsNumber()Gets the Number value if this LiveMapValue represents a Number. StringgetAsString()Gets the String value if this LiveMapValue represents a String. JsonArraygetAsJsonArray()Gets the JsonArray value if this LiveMapValue represents a JsonArray. JsonObjectgetAsJsonObject()Gets the JsonObject value if this LiveMapValue represents a JsonObject. LiveCountergetAsLiveCounter()Gets the LiveCounter value if this LiveMapValue represents a LiveCounter. LiveMapgetAsLiveMap()Gets the LiveMap value if this LiveMapValue represents a LiveMap. static LiveMapValueof(@NotNull() Boolean value)Creates a LiveMapValue from a Boolean. static LiveMapValueof(Array<byte> value)Creates a LiveMapValue from a Binary. static LiveMapValueof(@NotNull() Number value)Creates a LiveMapValue from a Number. static LiveMapValueof(@NotNull() String value)Creates a LiveMapValue from a String. static LiveMapValueof(@NotNull() JsonArray value)Creates a LiveMapValue from a JsonArray. static LiveMapValueof(@NotNull() JsonObject value)Creates a LiveMapValue from a JsonObject. static LiveMapValueof(@NotNull() LiveCounter value)Creates a LiveMapValue from a LiveCounter. static LiveMapValueof(@NotNull() LiveMap value)Creates a LiveMapValue from a LiveMap. -
-
Method Detail
-
isBoolean
boolean isBoolean()
Returns true if this LiveMapValue represents a Boolean value.
-
isBinary
boolean isBinary()
Returns true if this LiveMapValue represents a Binary value.
-
isNumber
boolean isNumber()
Returns true if this LiveMapValue represents a Number value.
-
isString
boolean isString()
Returns true if this LiveMapValue represents a String value.
-
isJsonArray
boolean isJsonArray()
Returns true if this LiveMapValue represents a JsonArray value.
-
isJsonObject
boolean isJsonObject()
Returns true if this LiveMapValue represents a JsonObject value.
-
isLiveCounter
boolean isLiveCounter()
Returns true if this LiveMapValue represents a LiveCounter value.
-
isLiveMap
boolean isLiveMap()
Returns true if this LiveMapValue represents a LiveMap value.
-
getAsBoolean
@NotNull() Boolean getAsBoolean()
Gets the Boolean value if this LiveMapValue represents a Boolean.
-
getAsBinary
Array<byte> getAsBinary()
Gets the Binary value if this LiveMapValue represents a Binary.
-
getAsNumber
@NotNull() Number getAsNumber()
Gets the Number value if this LiveMapValue represents a Number.
-
getAsString
@NotNull() String getAsString()
Gets the String value if this LiveMapValue represents a String.
-
getAsJsonArray
@NotNull() JsonArray getAsJsonArray()
Gets the JsonArray value if this LiveMapValue represents a JsonArray.
-
getAsJsonObject
@NotNull() JsonObject getAsJsonObject()
Gets the JsonObject value if this LiveMapValue represents a JsonObject.
-
getAsLiveCounter
@NotNull() LiveCounter getAsLiveCounter()
Gets the LiveCounter value if this LiveMapValue represents a LiveCounter.
-
getAsLiveMap
@NotNull() LiveMap getAsLiveMap()
Gets the LiveMap value if this LiveMapValue represents a LiveMap.
-
of
@NotNull() static LiveMapValue of(@NotNull() Boolean value)
Creates a LiveMapValue from a Boolean.
- Parameters:
value- the boolean value
-
of
@NotNull() static LiveMapValue of(Array<byte> value)
Creates a LiveMapValue from a Binary.
- Parameters:
value- the binary value
-
of
@NotNull() static LiveMapValue of(@NotNull() Number value)
Creates a LiveMapValue from a Number.
- Parameters:
value- the number value
-
of
@NotNull() static LiveMapValue of(@NotNull() String value)
Creates a LiveMapValue from a String.
- Parameters:
value- the string value
-
of
@NotNull() static LiveMapValue of(@NotNull() JsonArray value)
Creates a LiveMapValue from a JsonArray.
- Parameters:
value- the JsonArray value
-
of
@NotNull() static LiveMapValue of(@NotNull() JsonObject value)
Creates a LiveMapValue from a JsonObject.
- Parameters:
value- the JsonObject value
-
of
@NotNull() static LiveMapValue of(@NotNull() LiveCounter value)
Creates a LiveMapValue from a LiveCounter.
- Parameters:
value- the LiveCounter value
-
of
@NotNull() static LiveMapValue of(@NotNull() LiveMap value)
Creates a LiveMapValue from a LiveMap.
- Parameters:
value- the LiveMap value
-
-
-
-