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

Method get

corpus/java/training/guava/collect/Maps.java:836–845  ·  view source on GitHub ↗
(@Nullable Object key)

Source from the content-addressed store, hash-verified

834 }
835
836 @Override
837 public V get(@Nullable Object key) {
838 if (Collections2.safeContains(backingSet(), key)) {
839 @SuppressWarnings("unchecked") // unsafe, but Javadoc warns about it
840 K k = (K) key;
841 return function.apply(k);
842 } else {
843 return null;
844 }
845 }
846
847 @Override
848 public V remove(@Nullable Object key) {

Callers

nothing calls this directly

Calls 3

safeContainsMethod · 0.95
backingSetMethod · 0.95
applyMethod · 0.65

Tested by

no test coverage detected