com.sun.enterprise.universal
Class NameValue<K,V>

java.lang.Object
  extended by com.sun.enterprise.universal.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 Summary
NameValue(K k, V v)
           
 
Method Summary
 boolean equals(Object o)
           
 K getName()
           
 V getValue()
           
 int hashCode()
           
 V setValue(V newValue)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

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)

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


Copyright © 2012 GlassFish Community. All Rights Reserved.