Builds a map that supports atomic, on-demand computation of values. Map#get either returns an already-computed value for the given key, atomically computes it using the supplied function, or, if another thread is currently computing the value for this key, simply waits for that thread to fin
(Function<? super K, ? extends V> computingFunction)
| 355 | */ |
| 356 | |
| 357 | @Deprecated |
| 358 | <K, V> ConcurrentMap<K, V> makeComputingMap(Function<? super K, ? extends V> computingFunction) { |
| 359 | return new MapMaker.ComputingMapAdapter<K, V>(this, computingFunction); |
| 360 | } |
| 361 | |
| 362 | /** |
| 363 | * Returns a string representation for this MapMaker instance. The exact form of the returned |
no outgoing calls
no test coverage detected