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

Method contains

output/java_guava/1.4.19/Maps.java:3954–3964  ·  view source on GitHub ↗
(Object o)

Source from the content-addressed store, hash-verified

3952 }
3953
3954 @Override
3955 public boolean contains(Object o) {
3956 if (o instanceof Entry) {
3957 Entry<?, ?> entry = (Entry<?, ?>) o;
3958 Object key = entry.getKey();
3959 V value = Maps.safeGet(map(), key);
3960 return Objects.equal(value, entry.getValue())
3961 && (value != null || map().containsKey(key));
3962 }
3963 return false;
3964 }
3965
3966 @Override
3967 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