Called after a cache miss to compute a value for the corresponding key. Returns the computed value or null if no value can be computed. The default implementation returns null. The method is called without synchronization: other threads may access the cache while this method is executing. If a
(K key)
| 243 | * key. |
| 244 | */ |
| 245 | protected V create(K key) { |
| 246 | return null; |
| 247 | } |
| 248 | |
| 249 | private int safeSizeOf(K key, V value) { |
| 250 | int result = sizeOf(key, value); |