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

Method getFirst

output/java_guava/1.4.16/LocalCache.java:2789–2793  ·  view source on GitHub ↗

Returns first entry of bin for given hash.

(int hash)

Source from the content-addressed store, hash-verified

2787 */
2788
2789 ReferenceEntry<K, V> getFirst(int hash) {
2790 // read this volatile field only once
2791 AtomicReferenceArray<ReferenceEntry<K, V>> table = this.table;
2792 return table.get(hash & (table.length() - 1));
2793 }
2794
2795 // Specialized implementations of map methods
2796

Callers 1

getEntryMethod · 0.95

Calls 2

getMethod · 0.65
lengthMethod · 0.45

Tested by

no test coverage detected