Class Pair<K,​V>

  • All Implemented Interfaces:
    java.io.Serializable, java.util.Map.Entry<K,​V>

    public class Pair<K,​V>
    extends java.util.AbstractMap.SimpleEntry<K,​V>
    See Also:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor Description
      Pair​(K key, V value)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      K getFirst()  
      V getSecond()  
      • 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

      • Pair

        public Pair​(K key,
                    V value)
    • Method Detail

      • getFirst

        public K getFirst()
        Returns:
        first object in the pair.
      • getSecond

        public V getSecond()
        Returns:
        second object in the pair.