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

Method newValueReference

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

Source from the content-addressed store, hash-verified

1907 // Guarded By Segment.this
1908
1909 @VisibleForTesting
1910 ValueReference<K, V> newValueReference(ReferenceEntry<K, V> entry, V value, int weight) {
1911 int hash = entry.getHash();
1912 return valueStrength.referenceValue(segmentFor(hash), entry, checkNotNull(value), weight);
1913 }
1914
1915 int hash(@Nullable Object key) {
1916 int h = keyEquivalence.hash(key);

Callers

nothing calls this directly

Calls 4

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

Tested by

no test coverage detected