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

Method makeComputingMap

output/java_guava/1.4.19/MapMaker.java:357–360  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

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

Callers 2

readObjectMethod · 0.95
ArbitraryOrderingClass · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected