Class NameValue<K,​V>


  • public class NameValue<K,​V>
    extends Object
    This class is needed so often in so many places. It is centralized once and for all here.
    Author:
    bnevins
    • Constructor Detail

      • NameValue

        public NameValue​(K k,
                         V v)
        Parameters:
        k - key
        v - value
    • Method Detail

      • getName

        public K getName()
      • getValue

        public V getValue()
      • setValue

        public V setValue​(V newValue)
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object