Package com.gentlyweb.utils
Class ItemPair
- java.lang.Object
-
- com.gentlyweb.utils.ItemPair
-
- All Implemented Interfaces:
java.util.Map.Entry
public class ItemPair extends java.lang.Object implements java.util.Map.Entry
-
-
Constructor Summary
Constructors Constructor Description ItemPair(java.lang.Object key, java.lang.Object value)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object o)
This method just uses the algorithm defined in the Map.Entry interface.java.lang.Object
getKey()
java.lang.Object
getValue()
int
hashCode()
This method just uses the algorithm defined in the Map.Entry interface.java.lang.Object
setValue(java.lang.Object value)
-
-
-
Method Detail
-
hashCode
public int hashCode()
This method just uses the algorithm defined in the Map.Entry interface.- Specified by:
hashCode
in interfacejava.util.Map.Entry
- Overrides:
hashCode
in classjava.lang.Object
- Returns:
- The hash code.
-
getKey
public java.lang.Object getKey()
- Specified by:
getKey
in interfacejava.util.Map.Entry
-
setValue
public java.lang.Object setValue(java.lang.Object value)
- Specified by:
setValue
in interfacejava.util.Map.Entry
-
getValue
public java.lang.Object getValue()
- Specified by:
getValue
in interfacejava.util.Map.Entry
-
equals
public boolean equals(java.lang.Object o)
This method just uses the algorithm defined in the Map.Entry interface.- Specified by:
equals
in interfacejava.util.Map.Entry
- Overrides:
equals
in classjava.lang.Object
- Returns:
- The hash code.
-
-