Class Pair<K,​V>

  • Type Parameters:
    K - key parameter type.
    V - value parameter type.

    @Deprecated
    public class Pair<K,​V>
    extends java.lang.Object
    Deprecated.
    in favour of Tuple2
    Class which represents a pair of key and value.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private K key
      Deprecated.
       
      private V value
      Deprecated.
       
    • Constructor Summary

      Constructors 
      Constructor Description
      Pair​(K key, V value)
      Deprecated.
      Creates key-value pair.
    • Method Summary

      All Methods Instance Methods Concrete Methods Deprecated Methods 
      Modifier and Type Method Description
      K getKey()
      Deprecated.
      Gets key parameter.
      V getValue()
      Deprecated.
      Gets value parameter.
      • Methods inherited from class java.lang.Object

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

      • key

        private final K key
        Deprecated.
      • value

        private final V value
        Deprecated.
    • Constructor Detail

      • Pair

        public Pair​(K key,
                    V value)
        Deprecated.
        Creates key-value pair.
        Parameters:
        key - key parameter
        value - value parameter
    • Method Detail

      • getKey

        public K getKey()
        Deprecated.
        Gets key parameter.
        Returns:
        key parameter.
      • getValue

        public V getValue()
        Deprecated.
        Gets value parameter.
        Returns:
        value parameter.