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

Method newValueReference

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

Source from the content-addressed store, hash-verified

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