MCPcopy
hub / github.com/google/guava / contains

Method contains

guava/src/com/google/common/collect/Maps.java:4176–4185  ·  view source on GitHub ↗
(@Nullable Object o)

Source from the content-addressed store, hash-verified

4174 }
4175
4176 @Override
4177 public boolean contains(@Nullable Object o) {
4178 if (o instanceof Entry) {
4179 Entry<?, ?> entry = (Entry<?, ?>) o;
4180 Object key = entry.getKey();
4181 V value = safeGet(map(), key);
4182 return Objects.equals(value, entry.getValue()) && (value != null || map().containsKey(key));
4183 }
4184 return false;
4185 }
4186
4187 @Override
4188 public boolean isEmpty() {

Callers 3

removeMethod · 0.95
retainAllMethod · 0.95
removeMethod · 0.95

Calls 6

mapMethod · 0.95
getKeyMethod · 0.65
equalsMethod · 0.65
getValueMethod · 0.65
containsKeyMethod · 0.65
safeGetMethod · 0.45

Tested by

no test coverage detected