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

Method newValueReference

output/java_guava/1.4.13/LocalCache.java:1903–1907  ·  view source on GitHub ↗
(ReferenceEntry<K, V> entry, V value, int weight)

Source from the content-addressed store, hash-verified

1901 // Guarded By Segment.this
1902
1903 @VisibleForTesting
1904 ValueReference<K, V> newValueReference(ReferenceEntry<K, V> entry, V value, int weight) {
1905 int hash = entry.getHash();
1906 return valueStrength.referenceValue(segmentFor(hash), entry, checkNotNull(value), weight);
1907 }
1908
1909 int hash(@Nullable Object key) {
1910 int h = keyEquivalence.hash(key);

Callers

nothing calls this directly

Calls 4

getHashMethod · 0.65
referenceValueMethod · 0.45
segmentForMethod · 0.45
checkNotNullMethod · 0.45

Tested by

no test coverage detected