Interface MapValue

  • All Superinterfaces:
    Value
    All Known Subinterfaces:
    ImmutableMapValue
    All Known Implementing Classes:
    ImmutableMapValueImpl

    public interface MapValue
    extends Value
    Representation of MessagePack's Map type. MessagePack's Map type can represent sequence of key-value pairs.
    • Method Detail

      • size

        int size()
        Returns number of key-value pairs in this array.
      • keySet

        java.util.Set<Value> keySet()
      • entrySet

        java.util.Set<java.util.Map.Entry<Value,​Value>> entrySet()
      • values

        java.util.Collection<Value> values()
      • map

        java.util.Map<Value,​Value> map()
        Returns the value as Map.
      • getKeyValueArray

        Value[] getKeyValueArray()
        Returns the key-value pairs as an array of Value. Odd elements are keys. Next element of an odd element is a value corresponding to the key. For example, if this value represents {"k1": "v1", "k2": "v2"}, this method returns ["k1", "v1", "k2", "v2"].