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

Method makeMap

output/java_guava/1.4.19/MapMaker.java:282–287  ·  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

280
281
282 public <K, V> ConcurrentMap<K, V> makeMap() {
283 if (!useCustomMap) {
284 return new ConcurrentHashMap<K, V>(getInitialCapacity(), 0.75f, getConcurrencyLevel());
285 }
286 return new MapMakerInternalMap<K, V>(this);
287 }
288
289 /**
290 * 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