218 |
|
|
219 |
/** |
/** |
220 |
* Returns the hash code for this map. As defined in Map, this is the sum |
* Returns the hash code for this map. As defined in Map, this is the sum |
221 |
* of all hashcodes for each Map.Entry object in entrySet. |
* of all hashcodes for each Map.Entry object in entrySet, or basically |
222 |
|
* entrySet().hashCode(). |
223 |
* |
* |
224 |
* @return the hash code |
* @return the hash code |
225 |
* @see Map.Entry#hashCode() |
* @see Map.Entry#hashCode() |
227 |
*/ |
*/ |
228 |
public int hashCode() |
public int hashCode() |
229 |
{ |
{ |
230 |
int hashcode = 0; |
return entrySet().hashCode(); |
|
Iterator itr = entrySet().iterator(); |
|
|
int pos = size(); |
|
|
while (--pos >= 0) |
|
|
hashcode += itr.next().hashCode(); |
|
|
return hashcode; |
|
231 |
} |
} |
232 |
|
|
233 |
/** |
/** |