Returns the hash code for this object. Objects which are equal must return the same value for this method. @return the hash code of this object. @see #equals(Object)
()
| 192 | * @see #equals(Object) |
| 193 | */ |
| 194 | @Override |
| 195 | public int hashCode() { |
| 196 | int result = 0; |
| 197 | Iterator<Map.Entry<K, V>> it = entrySet().iterator(); |
| 198 | while (it.hasNext()) { |
| 199 | result += it.next().hashCode(); |
| 200 | } |
| 201 | return result; |
| 202 | } |
| 203 | |
| 204 | /** |
| 205 | * Returns whether this map is empty. |