MCPcopy Create free account
hub / github.com/LFYSec/MScan / containsKey

Method containsKey

src/main/java/pascal/taie/util/collection/IndexMap.java:91–95  ·  view source on GitHub ↗
(Object key)

Source from the content-addressed store, hash-verified

89 }
90
91 @Override
92 public boolean containsKey(Object key) {
93 int index = indexer.getIndex((K) key);
94 return isValidIndex(index) && values[index] != null;
95 }
96
97 private boolean isValidIndex(int index) {
98 return 0 <= index && index < values.length;

Callers

nothing calls this directly

Calls 2

isValidIndexMethod · 0.95
getIndexMethod · 0.65

Tested by

no test coverage detected