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

Method get

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

Source from the content-addressed store, hash-verified

972 }
973
974 @Override
975 @Nullable
976 public V get(@Nullable Object key) {
977 if (Collections2.safeContains(set, key)) {
978 @SuppressWarnings("unchecked") // unsafe, but Javadoc warns about it
979 K k = (K) key;
980 return function.apply(k);
981 } else {
982 return null;
983 }
984 }
985
986 @Override
987 public void clear() {

Callers

nothing calls this directly

Calls 2

safeContainsMethod · 0.95
applyMethod · 0.65

Tested by

no test coverage detected