public final class Maps
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
static <K,V> java.util.HashMap<K,V> |
newHashMap(int numMappings)
Creates a new, empty HashMap suitable for the expected number of mappings.
|
static <K,V> java.util.LinkedHashMap<K,V> |
newLinkedHashMap(int numMappings)
Creates a new, empty LinkedHashMap suitable for the expected number of mappings.
|
public static <K,V> java.util.HashMap<K,V> newHashMap(int numMappings)
public static <K,V> java.util.LinkedHashMap<K,V> newLinkedHashMap(int numMappings)