Class Pair<K,​V>

  • Type Parameters:
    K - Type of key
    V - Type of value

    public class Pair<K,​V>
    extends Object
    Simple key/value pair.

    Alternative suggested implementations (although jackson deserialization has issues):
    • java.util.AbstractMap.SimpleEntry
    • subclasses of org.apache.commons.lang3.tuple.Pair
    • Constructor Detail

      • Pair

        public Pair()
      • Pair

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

      • getKey

        public K getKey()
      • setKey

        public void setKey​(K key)
      • k

        public Pair<K,​V> k​(K k)
      • getValue

        public V getValue()
      • setValue

        public void setValue​(V value)
      • v

        public Pair<K,​V> v​(V v)
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object