| 限定符和类型 | 方法和说明 |
|---|---|
static <K,V> ConcurrentMap<K,V> |
newConcurrentMap()
Creates a mutable, empty
ConcurrentMap instance. |
static <K,V> ConcurrentMap<K,V> |
newConcurrentMap(int initialCapacity)
Creates a
ConcurrentMap instance, with a high enough "initial capacity"
that it should hold expectedSize elements without growth. |
static <V> ConcurrentMap<Long,V> |
newConcurrentMapLong()
Creates a mutable, empty
NonBlockingHashMapLong instance. |
static <V> ConcurrentMap<Long,V> |
newConcurrentMapLong(int initialCapacity)
Creates a
NonBlockingHashMapLong instance, with a high enough "initial capacity"
that it should hold expectedSize elements without growth. |
static <K,V> HashMap<K,V> |
newHashMap()
Creates a mutable, empty
HashMap instance. |
static <K,V> HashMap<K,V> |
newHashMapWithExpectedSize(int expectedSize)
Creates a
HashMap instance, with a high enough "initial capacity"
that it should hold expectedSize elements without growth. |
static <K,V> IdentityHashMap<K,V> |
newIdentityHashMap()
Creates an
IdentityHashMap instance. |
static <K,V> IdentityHashMap<K,V> |
newIdentityHashMapWithExpectedSize(int expectedSize)
Creates an
IdentityHashMap instance, with a high enough "initial capacity"
that it should hold expectedSize elements without growth. |
static <K,V> LinkedHashMap<K,V> |
newLinkedHashMap()
Creates a mutable, empty, insertion-ordered
LinkedHashMap instance. |
static <K extends Comparable,V> |
newTreeMap()
Creates a mutable, empty
TreeMap instance using the natural ordering of its elements. |
public static <K,V> HashMap<K,V> newHashMap()
HashMap instance.public static <K,V> HashMap<K,V> newHashMapWithExpectedSize(int expectedSize)
HashMap instance, with a high enough "initial capacity"
that it should hold expectedSize elements without growth.public static <K,V> IdentityHashMap<K,V> newIdentityHashMap()
IdentityHashMap instance.public static <K,V> IdentityHashMap<K,V> newIdentityHashMapWithExpectedSize(int expectedSize)
IdentityHashMap instance, with a high enough "initial capacity"
that it should hold expectedSize elements without growth.public static <K,V> LinkedHashMap<K,V> newLinkedHashMap()
LinkedHashMap instance.public static <K extends Comparable,V> TreeMap<K,V> newTreeMap()
TreeMap instance using the natural ordering of its elements.public static <K,V> ConcurrentMap<K,V> newConcurrentMap()
ConcurrentMap instance.public static <K,V> ConcurrentMap<K,V> newConcurrentMap(int initialCapacity)
ConcurrentMap instance, with a high enough "initial capacity"
that it should hold expectedSize elements without growth.public static <V> ConcurrentMap<Long,V> newConcurrentMapLong()
NonBlockingHashMapLong instance.public static <V> ConcurrentMap<Long,V> newConcurrentMapLong(int initialCapacity)
NonBlockingHashMapLong instance, with a high enough "initial capacity"
that it should hold expectedSize elements without growth.Copyright © 2018. All rights reserved.