MCPcopy Index your code
hub / github.com/antlr/codebuff / get

Method get

output/java_guava/1.4.17/Maps.java:1001–1012  ·  view source on GitHub ↗
(@Nullable Object key)

Source from the content-addressed store, hash-verified

999 }
1000
1001 @Override
1002 @Nullable
1003 public V get(@Nullable Object key) {
1004 if (Collections2.safeContains(set, key)) {
1005
1006 @SuppressWarnings("unchecked") // unsafe, but Javadoc warns about it
1007 K k = (K) key;
1008 return function.apply(k);
1009 } else {
1010 return null;
1011 }
1012 }
1013
1014 @Override
1015 public void clear() {

Callers

nothing calls this directly

Calls 2

safeContainsMethod · 0.95
applyMethod · 0.65

Tested by

no test coverage detected