Class KeyValue


  • public class KeyValue
    extends Object
    A key-value pair representation.
    • Constructor Detail

      • KeyValue

        public KeyValue​(String key,
                        Variant value)
        Creates a new KeyValue with the provided key and value.
        Parameters:
        key - key
        value - value
    • Method Detail

      • key

        public String key()
        Returns the key of this key-value pair.
        Returns:
        key of this key-value pair
      • value

        public Variant value()
        Returns the value of this key-value pair.
        Returns:
        value of this key-value pair