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

Method copyEntry

output/java_guava/1.4.17/LocalCache.java:1898–1902  ·  view source on GitHub ↗
(ReferenceEntry<K, V> original, ReferenceEntry<K, V> newNext)

Source from the content-addressed store, hash-verified

1896 // Guarded By Segment.this
1897
1898 @VisibleForTesting
1899 ReferenceEntry<K, V> copyEntry(ReferenceEntry<K, V> original, ReferenceEntry<K, V> newNext) {
1900 int hash = original.getHash();
1901 return segmentFor(hash).copyEntry(original, newNext);
1902 }
1903
1904 /**
1905 * 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