erland.util
Class KeyValue

java.lang.Object
  extended by 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


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

Constructor Detail

KeyValue

public KeyValue()

KeyValue

public KeyValue(Object key,
                Object value)
Method Detail

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.