erland.util
Class KeyValue
java.lang.Object
erland.util.KeyValue
- All Implemented Interfaces:
- Map.Entry
public class KeyValue
- extends Object
- implements Map.Entry
This class stores a key value pair which can be used in all sorts of data structures
KeyValue
public KeyValue()
KeyValue
public KeyValue(Object key,
Object value)
getKey
public Object getKey()
- Specified by:
getKey
in interface Map.Entry
setKey
public void setKey(Object key)
getValue
public Object getValue()
- Specified by:
getValue
in interface Map.Entry
setValue
public Object setValue(Object value)
- Specified by:
setValue
in interface Map.Entry
hashCode
public int hashCode()
- Specified by:
hashCode
in interface Map.Entry
- Overrides:
hashCode
in class Object
equals
public boolean equals(Object obj)
- Specified by:
equals
in interface Map.Entry
- Overrides:
equals
in class Object
Copyright © 2003-2005 Erland Isaksson. All Rights Reserved.