MCPcopy
hub / github.com/google/guava / getFirst

Method getFirst

guava/src/com/google/common/cache/LocalCache.java:2685–2689  ·  view source on GitHub ↗

Returns first entry of bin for given hash.

(int hash)

Source from the content-addressed store, hash-verified

2683
2684 /** Returns first entry of bin for given hash. */
2685 ReferenceEntry<K, V> getFirst(int hash) {
2686 // read this volatile field only once
2687 AtomicReferenceArray<ReferenceEntry<K, V>> table = this.table;
2688 return table.get(hash & (table.length() - 1));
2689 }
2690
2691 // Specialized implementations of map methods
2692

Callers 1

getEntryMethod · 0.95

Calls 2

getMethod · 0.65
lengthMethod · 0.45

Tested by

no test coverage detected