MCPcopy Create free account
hub / github.com/antlr/codebuff / standardHashCode

Method standardHashCode

output/java_guava/1.4.16/ForwardingMap.java:324–326  ·  view source on GitHub ↗

A sensible definition of #hashCode in terms of the iterator method of #entrySet. If you override #entrySet, you may wish to override #hashCode to forward to this implementation. @since 7.0

()

Source from the content-addressed store, hash-verified

322
323
324 protected int standardHashCode() {
325 return Sets.hashCodeImpl(entrySet());
326 }
327
328 /**
329 * A sensible definition of {@link #toString} in terms of the {@code iterator}

Callers 1

hashCodeMethod · 0.45

Calls 2

hashCodeImplMethod · 0.95
entrySetMethod · 0.95

Tested by

no test coverage detected