public interface CollectionFactoryManager
CollectionFactory instances.| Modifier and Type | Method and Description |
|---|---|
<C extends Collection> |
create(Class<C> type)
This method creates a
Collection implementing the given type. |
<C extends Collection> |
create(Class<C> type,
int capacity)
This method creates a
Collection implementing the given type. |
<C extends Map> |
createMap(Class<C> type)
This method creates a
Map implementing the given type. |
<C extends Map> |
createMap(Class<C> type,
int capacity)
This method creates a
Map implementing the given type. |
<COLLECTION extends Collection> |
getCollectionFactory(Class<COLLECTION> collectionType)
This method gets the
CollectionFactory for the given collectionType. |
<MAP extends Map> |
getMapFactory(Class<MAP> mapType)
This method gets the
MapFactory for the given mapType. |
<MAP extends Map> MapFactory getMapFactory(Class<MAP> mapType)
MapFactory for the given mapType.MAP - is the generic type of the Map.mapType - is the type of the Map. This should be the interface such as Map.class or
SortedMap.class.MapFactory for the given mapType. The mapType has to be
assignable from MapFactory.getMapInterface() of the
returned instance. Typically it will be equal.<COLLECTION extends Collection> CollectionFactory<COLLECTION> getCollectionFactory(Class<COLLECTION> collectionType)
CollectionFactory for the given collectionType.COLLECTION - is the generic type of the Collection.collectionType - is the type of the Collection. This should be the Collection
interface such as List.class.CollectionFactory for the given collectionType. The collectionType
has to be assignable from
CollectionFactory.getCollectionInterface() of the returned instance. Typically it will be
equal.<C extends Collection> C create(Class<C> type)
Collection implementing the given type.C - is the generic type of the Collection.type - is the type of Collection to create. This is either an interface
(List, Set, Queue, etc.) or a non-abstract
implementation of a Collection.type.<C extends Collection> C create(Class<C> type, int capacity)
Collection implementing the given type.C - is the generic type of the Collection.type - is the type of Collection to create. This is either an interface
(List, Set, Queue, etc.) or a non-abstract
implementation of a Collection.capacity - is the initial capacity of the Collection.type.<C extends Map> C createMap(Class<C> type)
Map implementing the given type.C - is the generic type of the Map.type - is the type of Map to create. This is either an interface (Map,
ConcurrentMap, NavigableMap, etc.) or a
non-abstract implementation of a Map.type.<C extends Map> C createMap(Class<C> type, int capacity)
Map implementing the given type.C - is the generic type of the Map.type - is the type of Map to create. This is either an interface (Map,
ConcurrentMap, NavigableMap, etc.) or a
non-abstract implementation of a Map.capacity - is the initial capacity of the Map.type.Copyright © 2001–2019 mmm-Team. All rights reserved.