Class NameValue<K,V>

java.lang.Object
com.sun.enterprise.universal.NameValue<K,V>
Record Components:
K - key type
V - value type

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 Details

    • NameValue

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

    • getName

      public K getName()
    • getValue

      public V getValue()
    • setValue

      public V setValue(V newValue)
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object