Class Pair<K,V>

All Implemented Interfaces:
Serializable, Map.Entry<K,V>

public class Pair<K,V> extends AbstractMap.SimpleEntry<K,V>
See Also:
  • Constructor Details

    • Pair

      public Pair(K key, V value)
  • Method Details

    • getFirst

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

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