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 booleanequals(java.lang.Object o)This method just uses the algorithm defined in the Map.Entry interface.java.lang.ObjectgetKey()java.lang.ObjectgetValue()inthashCode()This method just uses the algorithm defined in the Map.Entry interface.java.lang.ObjectsetValue(java.lang.Object value)
-
-
-
Method Detail
-
hashCode
public int hashCode()
This method just uses the algorithm defined in the Map.Entry interface.- Specified by:
hashCodein interfacejava.util.Map.Entry- Overrides:
hashCodein classjava.lang.Object- Returns:
- The hash code.
-
getKey
public java.lang.Object getKey()
- Specified by:
getKeyin interfacejava.util.Map.Entry
-
setValue
public java.lang.Object setValue(java.lang.Object value)
- Specified by:
setValuein interfacejava.util.Map.Entry
-
getValue
public java.lang.Object getValue()
- Specified by:
getValuein 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:
equalsin interfacejava.util.Map.Entry- Overrides:
equalsin classjava.lang.Object- Returns:
- The hash code.
-
-