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

Method copyEntry

guava/src/com/google/common/cache/LocalCache.java:1711–1716  ·  view source on GitHub ↗
(ReferenceEntry<K, V> original, ReferenceEntry<K, V> newNext)

Source from the content-addressed store, hash-verified

1709 */
1710 // Guarded By Segment.this
1711 @SuppressWarnings("GuardedBy")
1712 @VisibleForTesting
1713 ReferenceEntry<K, V> copyEntry(ReferenceEntry<K, V> original, ReferenceEntry<K, V> newNext) {
1714 int hash = original.getHash();
1715 return segmentFor(hash).copyEntry(original, newNext);
1716 }
1717
1718 /**
1719 * This method is a convenience for testing. Code should call {@link Segment#setValue} instead.

Callers 4

copyEntryMethod · 0.45
copyEntryMethod · 0.45
testCopyEntryMethod · 0.45

Calls 2

segmentForMethod · 0.95
getHashMethod · 0.65

Tested by 2

testCopyEntryMethod · 0.36