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.
()
| 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 |
no test coverage detected