MCPcopy Index your code
hub / github.com/antlr/codebuff / contains

Method contains

output/java_guava/1.4.17/Maps.java:3950–3960  ·  view source on GitHub ↗
(Object o)

Source from the content-addressed store, hash-verified

3948 }
3949
3950 @Override
3951 public boolean contains(Object o) {
3952 if (o instanceof Entry) {
3953 Entry<?, ?> entry = (Entry<?, ?>) o;
3954 Object key = entry.getKey();
3955 V value = Maps.safeGet(map(), key);
3956 return Objects.equal(value, entry.getValue())
3957&& (value != null || map().containsKey(key));
3958 }
3959 return false;
3960 }
3961
3962 @Override
3963 public boolean isEmpty() {

Callers 3

removeMethod · 0.95
retainAllMethod · 0.95
removeMethod · 0.95

Calls 6

safeGetMethod · 0.95
mapMethod · 0.95
equalMethod · 0.95
getKeyMethod · 0.65
getValueMethod · 0.65
containsKeyMethod · 0.65

Tested by

no test coverage detected