public final class Maps extends Object
com.google.common.collect.Maps.| Modifier | Constructor and Description |
|---|---|
private |
Maps()
Hidden for pure static factory.
|
| Modifier and Type | Method and Description |
|---|---|
static <K,V> Map<K,V> |
newHashMap()
Creates a mutable, empty
HashMap instance. |
static <K,V> Map<K,V> |
newHashMap(Map<? extends K,? extends V> map)
Creates a mutable
HashMap instance with the same mappings as the specified map. |
public static <K,V> Map<K,V> newHashMap()
HashMap instance.K - type of keyV - type of valueHashMappublic static <K,V> Map<K,V> newHashMap(Map<? extends K,? extends V> map)
HashMap instance with the same mappings as the specified map.K - type of keyV - type of valuemap - the mappings to be placed in the new mapHashMap initialized with the mappings from mapCopyright © 2014 Sven Strittmatter. All Rights Reserved.