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

Method contains

output/java_guava/1.4.13/LocalCache.java:4624–4636  ·  view source on GitHub ↗
(Object o)

Source from the content-addressed store, hash-verified

4622 }
4623
4624 @Override
4625 public boolean contains(Object o) {
4626 if (!(o instanceof Entry)) {
4627 return false;
4628 }
4629 Entry<?, ?> e = (Entry<?, ?>) o;
4630 Object key = e.getKey();
4631 if (key == null) {
4632 return false;
4633 }
4634 V v = LocalCache.this.get(key);
4635 return v != null && valueEquivalence.equivalent(e.getValue(), v);
4636 }
4637
4638 @Override
4639 public boolean remove(Object o) {

Callers

nothing calls this directly

Calls 4

getKeyMethod · 0.65
getMethod · 0.65
getValueMethod · 0.65
equivalentMethod · 0.45

Tested by

no test coverage detected