public final class MapUtil extends Object
Modifier and Type | Method and Description |
---|---|
static <K,V> Map<K,V> |
createHashMap(int expectedMapSize)
Utility method that creates an
HashMap with its initialCapacity calculated
to minimize rehash operations |
static boolean |
isNullOrEmpty(Map map)
Test the given map and return
true if the map is null or empty. |
public static <K,V> Map<K,V> createHashMap(int expectedMapSize)
HashMap
with its initialCapacity calculated
to minimize rehash operationspublic static boolean isNullOrEmpty(Map map)
true
if the map is null or empty.map
- the map to testtrue
if map
is null or empty, otherwise false
.Copyright © 2016 Hazelcast, Inc.. All Rights Reserved.