csli.util
Class KeyVal<K,V>

java.lang.Object
  extended by csli.util.KeyVal<K,V>
All Implemented Interfaces:
Map.Entry<K,V>

public class KeyVal<K,V>
extends Object
implements Map.Entry<K,V>


Field Summary
 K key
           
 V value
           
 
Constructor Summary
KeyVal(K key, V value)
           
 
Method Summary
 boolean equals(Object obj)
           
 K getKey()
           
 V getValue()
           
 int hashCode()
           
 void setKey(K key)
           
 V setValue(V value)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

key

public K key

value

public V value
Constructor Detail

KeyVal

public KeyVal(K key,
              V value)
Method Detail

getKey

public K getKey()
Specified by:
getKey in interface Map.Entry<K,V>

setKey

public void setKey(K key)

getValue

public V getValue()
Specified by:
getValue in interface Map.Entry<K,V>

setValue

public V setValue(V value)
Specified by:
setValue in interface Map.Entry<K,V>

toString

public String toString()
Overrides:
toString in class Object

equals

public boolean equals(Object obj)
Specified by:
equals in interface Map.Entry<K,V>
Overrides:
equals in class Object

hashCode

public int hashCode()
Specified by:
hashCode in interface Map.Entry<K,V>
Overrides:
hashCode in class Object