Interface Value<T>

    • Method Detail

      • of

        static Value<java.lang.String> of​(java.lang.String value)
        Returns an Value for the String value.
      • of

        static Value<java.lang.Boolean> of​(boolean value)
        Returns an Value for the boolean value.
      • of

        static Value<java.lang.Long> of​(long value)
        Returns an Value for the long value.
      • of

        static Value<java.lang.Double> of​(double value)
        Returns an Value for the double value.
      • of

        static Value<java.nio.ByteBuffer> of​(byte[] value)
        Returns an Value for the byte[] value.
      • of

        static Value<java.util.List<Value<?>>> of​(java.util.List<Value<?>> value)
        Returns an Value for the list of Value values.
      • of

        static Value<java.util.List<KeyValue>> of​(java.util.Map<java.lang.String,​Value<?>> value)
        Returns an Value for the Map of key, Value.
      • getType

        ValueType getType()
        Returns the type of this Value. Useful for building switch statements.
      • asString

        java.lang.String asString()
        Return a string encoding of this Value. This is intended to be a fallback serialized representation in case there is no suitable encoding that can utilize getType() / getValue() to serialize specific types.

        WARNING: No guarantees are made about the encoding of this string response. It MAY change in a future minor release. If you need a reliable string encoding, write your own serializer.