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

Method contains

corpus/java/training/guava/collect/Maps.java:3885–3894  ·  view source on GitHub ↗
(Object o)

Source from the content-addressed store, hash-verified

3883 }
3884
3885 @Override
3886 public boolean contains(Object o) {
3887 if (o instanceof Entry) {
3888 Entry<?, ?> entry = (Entry<?, ?>) o;
3889 Object key = entry.getKey();
3890 V value = Maps.safeGet(map(), key);
3891 return Objects.equal(value, entry.getValue()) && (value != null || map().containsKey(key));
3892 }
3893 return false;
3894 }
3895
3896 @Override
3897 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