MCPcopy Index your code
hub / github.com/davidgiven/luje / hashCode

Method hashCode

lib/java/util/AbstractMap.java:194–202  ·  view source on GitHub ↗

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)

()

Source from the content-addressed store, hash-verified

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.

Callers

nothing calls this directly

Calls 5

entrySetMethod · 0.95
iteratorMethod · 0.65
hasNextMethod · 0.65
hashCodeMethod · 0.65
nextMethod · 0.65

Tested by

no test coverage detected