com.gentlyweb.utils
Class ItemPair

java.lang.Object
  extended by com.gentlyweb.utils.ItemPair
All Implemented Interfaces:
Map.Entry

public class ItemPair
extends Object
implements Map.Entry


Constructor Summary
ItemPair(Object key, Object value)
           
 
Method Summary
 boolean equals(Object o)
          This method just uses the algorithm defined in the Map.Entry interface.
 Object getKey()
           
 Object getValue()
           
 int hashCode()
          This method just uses the algorithm defined in the Map.Entry interface.
 Object setValue(Object value)
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ItemPair

public ItemPair(Object key,
                Object value)
Method Detail

hashCode

public int hashCode()
This method just uses the algorithm defined in the Map.Entry interface.

Specified by:
hashCode in interface Map.Entry
Overrides:
hashCode in class Object
Returns:
The hash code.

getKey

public Object getKey()
Specified by:
getKey in interface Map.Entry

setValue

public Object setValue(Object value)
Specified by:
setValue in interface Map.Entry

getValue

public Object getValue()
Specified by:
getValue in interface Map.Entry

equals

public boolean equals(Object o)
This method just uses the algorithm defined in the Map.Entry interface.

Specified by:
equals in interface Map.Entry
Overrides:
equals in class Object
Returns:
The hash code.