csli.util
Class KeyVal<K,V>
java.lang.Object
csli.util.KeyVal<K,V>
- All Implemented Interfaces:
- Map.Entry<K,V>
public class KeyVal<K,V>
- extends Object
- implements Map.Entry<K,V>
|
Constructor Summary |
KeyVal(K key,
V value)
|
key
public K key
value
public V value
KeyVal
public KeyVal(K key,
V value)
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