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

Method weakValues

output/java_guava/1.4.13/CacheBuilder.java:569–572  ·  view source on GitHub ↗

Specifies that each value (not key) stored in the cache should be wrapped in a WeakReference (by default, strong references are used). Weak values will be garbage collected once they are weakly reachable. This makes them a poor candidate for caching; consider #softValues instead.

()

Source from the content-addressed store, hash-verified

567 */
568
569 @GwtIncompatible // java.lang.ref.WeakReference
570 public CacheBuilder<K, V> weakValues() {
571 return setValueStrength(Strength.WEAK);
572 }
573
574 /**
575 * Specifies that each value (not key) stored in the cache should be wrapped in a

Callers 1

toCacheBuilderMethod · 0.45

Calls 1

setValueStrengthMethod · 0.95

Tested by

no test coverage detected