public final class MapUtil extends Object
Modifier and Type | Method and Description |
---|---|
static <K,V> Map<K,V> |
createConcurrentHashMap(int expectedMapSize)
Utility method that creates an
ConcurrentHashMap with its initialCapacity calculated
to minimize rehash operations |
static <K,V> Map<K,V> |
createHashMap(int expectedMapSize)
Utility method that creates an
HashMap with its initialCapacity calculated
to minimize rehash operations |
public static <K,V> Map<K,V> createHashMap(int expectedMapSize)
HashMap
with its initialCapacity calculated
to minimize rehash operationspublic static <K,V> Map<K,V> createConcurrentHashMap(int expectedMapSize)
ConcurrentHashMap
with its initialCapacity calculated
to minimize rehash operationsCopyright © 2015 Hazelcast, Inc.. All Rights Reserved.