public class CollectionFactory extends Object
| Constructor and Description |
|---|
CollectionFactory() |
| Modifier and Type | Method and Description |
|---|---|
static <K,V> Map<K,V> |
createHashedMap()
Answer a new Map which uses hashing for lookup.
|
static <K,V> Map<K,V> |
createHashedMap(int size)
Answer a new Map which uses hashing for lookup and has initial size
size. |
static <K,V> Map<K,V> |
createHashedMap(Map<K,V> toCopy)
Answer a new Map which uses hashing for lookup and is initialised to be
a copy of
toCopy. |
static <T> Set<T> |
createHashedSet()
Answer a new Set which uses haashing for lookup.
|
static <T> Set<T> |
createHashedSet(Collection<T> toCopy)
Answer a new Set which uses hashing for lookup and is initialised as a copy
of
toCopy. |
public static <K,V> Map<K,V> createHashedMap()
public static <K,V> Map<K,V> createHashedMap(int size)
size.public static <K,V> Map<K,V> createHashedMap(Map<K,V> toCopy)
toCopy.public static <T> Set<T> createHashedSet()
public static <T> Set<T> createHashedSet(Collection<T> toCopy)
toCopy.Licenced under the Apache License, Version 2.0