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

Method standardClear

output/java_guava/1.4.17/ForwardingMap.java:193–195  ·  view source on GitHub ↗

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

()

Source from the content-addressed store, hash-verified

191
192
193 protected void standardClear() {
194 Iterators.clear(entrySet().iterator());
195 }
196
197 /**
198 * A sensible implementation of {@link Map#keySet} in terms of the following

Callers

nothing calls this directly

Calls 3

clearMethod · 0.95
entrySetMethod · 0.95
iteratorMethod · 0.65

Tested by

no test coverage detected