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

Method containsKeyImpl

output/java_guava/1.4.18/Maps.java:3573–3575  ·  view source on GitHub ↗

An admittedly inefficient implementation of Map#containsKey.

(Map<?, ?> map, @Nullable Object key)

Source from the content-addressed store, hash-verified

3571
3572
3573 static boolean containsKeyImpl(Map<?, ?> map, @Nullable Object key) {
3574 return Iterators.contains(keyIterator(map.entrySet().iterator()), key);
3575 }
3576
3577 /**
3578 * An implementation of {@link Map#containsValue}.

Callers 1

standardContainsKeyMethod · 0.95

Calls 4

containsMethod · 0.95
keyIteratorMethod · 0.95
iteratorMethod · 0.65
entrySetMethod · 0.65

Tested by

no test coverage detected