public class MapFactory
extends java.lang.Object
Modifier | Constructor and Description |
---|---|
protected |
MapFactory()
Don't allow instantiation, do allow overrides.
|
Modifier and Type | Method and Description |
---|---|
static <K,V> java.util.Map<K,V> |
createNewCompressedMap()
Create a new compressed unsorted map (CompressedHashMap).
|
static <K,V> java.util.Map<K,V> |
createNewCompressedMap(int capacity)
Create a new compressed unsorted map (HashMap) with specified initial capacity.
|
static <K,V> java.util.Map<K,V> |
createNewLinkedMap()
Create a new map with keys in insertion order (LinkedHashMap).
|
static <K,V> java.util.Map<K,V> |
createNewLinkedMap(int capacity)
Create a new map with keys in insertion order (LinkedHashMap) with
specified initial capacity..
|
static <K,V> java.util.Map<K,V> |
createNewMap()
Create a new unsorted map (HashMap).
|
static <K,V> java.util.Map<K,V> |
createNewMap(int capacity)
Create a new unsorted map (HashMap) with specified initial capacity.
|
static <K,V> java.util.Map<K,V> |
createNewSortedMap()
Create a new sorted map (TreeMap).
|
static <K,V> java.util.Map<K,V> |
createNewSynchronizedMap()
Create a new synchronized unsorted map (HashMap).
|
public static <K,V> java.util.Map<K,V> createNewMap()
public static <K,V> java.util.Map<K,V> createNewSynchronizedMap()
public static <K,V> java.util.Map<K,V> createNewMap(int capacity)
capacity
- Initial capacity.public static <K,V> java.util.Map<K,V> createNewCompressedMap()
public static <K,V> java.util.Map<K,V> createNewCompressedMap(int capacity)
capacity
- Initial capacity.public static <K,V> java.util.Map<K,V> createNewLinkedMap()
public static <K,V> java.util.Map<K,V> createNewLinkedMap(int capacity)
capacity
- Initial capacity.public static <K,V> java.util.Map<K,V> createNewSortedMap()