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

Method seekByValue

corpus/java/training/guava/collect/HashBiMap.java:230–239  ·  view source on GitHub ↗
(@Nullable Object value, int valueHash)

Source from the content-addressed store, hash-verified

228 }
229
230 private BiEntry<K, V> seekByValue(@Nullable Object value, int valueHash) {
231 for (BiEntry<K, V> entry = hashTableVToK[valueHash & mask];
232 entry != null;
233 entry = entry.nextInVToKBucket) {
234 if (valueHash == entry.valueHash && Objects.equal(value, entry.value)) {
235 return entry;
236 }
237 }
238 return null;
239 }
240
241 @Override
242 public boolean containsKey(@Nullable Object key) {

Callers 7

containsValueMethod · 0.95
putMethod · 0.95
putInverseMethod · 0.95
setValueMethod · 0.45
getMethod · 0.45
removeMethod · 0.45
removeMethod · 0.45

Calls 1

equalMethod · 0.95

Tested by

no test coverage detected