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

Method makeMap

output/java_guava/1.4.18/MapMaker.java:280–285  ·  view source on GitHub ↗

Builds a thread-safe map. This method does not alter the state of this MapMaker instance, so it can be invoked again to create multiple independent maps. The bulk operations putAll, equals, and clear are not guaranteed to be performed atomically on the returned ma

()

Source from the content-addressed store, hash-verified

278
279
280 public <K, V> ConcurrentMap<K, V> makeMap() {
281 if (!useCustomMap) {
282 return new ConcurrentHashMap<K, V>(getInitialCapacity(), 0.75f, getConcurrencyLevel());
283 }
284 return new MapMakerInternalMap<K, V>(this);
285 }
286
287 /**
288 * Returns a MapMakerInternalMap for the benefit of internal callers that use features of that

Callers 7

readObjectMethod · 0.95
createMethod · 0.45
newConcurrentMapMethod · 0.45
newStrongInternerMethod · 0.45
LockGraphNodeClass · 0.45
LargeLazyStripedMethod · 0.45

Calls 2

getInitialCapacityMethod · 0.95
getConcurrencyLevelMethod · 0.95

Tested by

no test coverage detected