Class KeyValuePair<K,​V>

  • Type Parameters:
    K - the type of the key
    V - the type of the value
    All Implemented Interfaces:
    java.io.Serializable, java.util.Map.Entry<K,​V>

    public class KeyValuePair<K,​V>
    extends java.util.AbstractMap.SimpleEntry<K,​V>
    A KeyValuePair holds a key and a value. This class is used to represent parameters when encoding API requests.
    See Also:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor Description
      KeyValuePair​(K key, V value)
      Initializes a new instance of the KeyValuePair class using the specified key and value.
    • Method Summary

      • Methods inherited from class java.util.AbstractMap.SimpleEntry

        equals, getKey, getValue, hashCode, setValue, toString
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • KeyValuePair

        public KeyValuePair​(K key,
                            V value)
        Initializes a new instance of the KeyValuePair class using the specified key and value.
        Parameters:
        key - the key
        value - the value