public class Maps extends Object
| Modifier and Type | Method and Description |
|---|---|
static <K,V> HashMap<K,V> |
newHashMap(int expectedSize)
Returns a HashMap with a capacity that is sufficient to keep the map
from being resized as long as it grows no larger than expectedSize
with the default load factor (0.75).
|
static <K,V> HashMap<K,V> |
newHashMap(K key1,
V value1,
Object... others) |
static HashMap<String,String> |
newHashMap(String... s) |
static Map<String,String> |
newHashMapFrom(Map<String,String> original,
String... s) |
static <K,V> Map<K,V> |
newImmutableMap(Map<K,V> original) |
static Map<String,String> |
newTreeMap(String... s) |
public static <K,V> HashMap<K,V> newHashMap(int expectedSize)
public static Map<String,String> newHashMapFrom(Map<String,String> original, String... s)
Copyright © 2013–2019 mklinger GmbH. All rights reserved.