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

Method standardIsEmpty

output/java_guava/1.4.17/ForwardingMap.java:298–300  ·  view source on GitHub ↗

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

()

Source from the content-addressed store, hash-verified

296
297
298 protected boolean standardIsEmpty() {
299 return !entrySet().iterator().hasNext();
300 }
301
302 /**
303 * A sensible definition of {@link #equals} in terms of the {@code equals}

Callers

nothing calls this directly

Calls 3

entrySetMethod · 0.95
iteratorMethod · 0.65
hasNextMethod · 0.45

Tested by

no test coverage detected