Package 

Class LiveMapValue


  • 
    public abstract class LiveMapValue
    
                        

    Abstract 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 Object getValue() Gets the underlying value.
      boolean isBoolean() Returns true if this LiveMapValue represents a Boolean value.
      boolean isBinary() Returns true if this LiveMapValue represents a Binary value.
      boolean isNumber() Returns true if this LiveMapValue represents a Number value.
      boolean isString() Returns true if this LiveMapValue represents a String value.
      boolean isJsonArray() Returns true if this LiveMapValue represents a JsonArray value.
      boolean isJsonObject() Returns true if this LiveMapValue represents a JsonObject value.
      boolean isLiveCounter() Returns true if this LiveMapValue represents a LiveCounter value.
      boolean isLiveMap() Returns true if this LiveMapValue represents a LiveMap value.
      Boolean getAsBoolean() Gets the Boolean value if this LiveMapValue represents a Boolean.
      Array<byte> getAsBinary() Gets the Binary value if this LiveMapValue represents a Binary.
      Number getAsNumber() Gets the Number value if this LiveMapValue represents a Number.
      String getAsString() Gets the String value if this LiveMapValue represents a String.
      JsonArray getAsJsonArray() Gets the JsonArray value if this LiveMapValue represents a JsonArray.
      JsonObject getAsJsonObject() Gets the JsonObject value if this LiveMapValue represents a JsonObject.
      LiveCounter getAsLiveCounter() Gets the LiveCounter value if this LiveMapValue represents a LiveCounter.
      LiveMap getAsLiveMap() Gets the LiveMap value if this LiveMapValue represents a LiveMap.
      static LiveMapValue of(@NotNull() Boolean value) Creates a LiveMapValue from a Boolean.
      static LiveMapValue of(Array<byte> value) Creates a LiveMapValue from a Binary.
      static LiveMapValue of(@NotNull() Number value) Creates a LiveMapValue from a Number.
      static LiveMapValue of(@NotNull() String value) Creates a LiveMapValue from a String.
      static LiveMapValue of(@NotNull() JsonArray value) Creates a LiveMapValue from a JsonArray.
      static LiveMapValue of(@NotNull() JsonObject value) Creates a LiveMapValue from a JsonObject.
      static LiveMapValue of(@NotNull() LiveCounter value) Creates a LiveMapValue from a LiveCounter.
      static LiveMapValue of(@NotNull() LiveMap value) Creates a LiveMapValue from a LiveMap.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • getValue

        @NotNull() abstract Object getValue()

        Gets the underlying value.

      • 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.

      • 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