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

Method copyEntry

corpus/java/training/guava/cache/LocalCache.java:1831–1835  ·  view source on GitHub ↗
(ReferenceEntry<K, V> original, ReferenceEntry<K, V> newNext)

Source from the content-addressed store, hash-verified

1829 */
1830 // Guarded By Segment.this
1831 @VisibleForTesting
1832 ReferenceEntry<K, V> copyEntry(ReferenceEntry<K, V> original, ReferenceEntry<K, V> newNext) {
1833 int hash = original.getHash();
1834 return segmentFor(hash).copyEntry(original, newNext);
1835 }
1836
1837 /**
1838 * This method is a convenience for testing. Code should call {@link Segment#setValue} instead.

Callers 2

copyEntryMethod · 0.45
copyEntryMethod · 0.45

Calls 2

segmentForMethod · 0.95
getHashMethod · 0.65

Tested by

no test coverage detected