public abstract class CollectionFactory extends Object
CollectionFactory to add support for additional, sepcial
collection types.| Modifier and Type | Method and Description |
|---|---|
static Collection<Object> |
createCollection(Class<?> collectionType,
Class<?> elementType,
int size)
Creates a new collection instance for the given collection type.
|
static Map<Object,Object> |
createMap(Class<?> mapType,
Class<?> keyType,
int size)
Creates a new map instance for the given map type.
|
public static Collection<Object> createCollection(Class<?> collectionType, Class<?> elementType, int size)
EnumSet).collectionType - must not be null.elementType - can be null.size - the initial size of the collection to be created.public static Map<Object,Object> createMap(Class<?> mapType, Class<?> keyType, int size)
EnumMap).mapType - must not be null.keyType - can be null.size - the initial size of the collection to be created.Copyright © 2011-2014–2015 Pivotal Software, Inc.. All rights reserved.