public abstract class AbstractListFactory extends Object implements ListFactory
ListFactory
interface.Constructor and Description |
---|
AbstractListFactory()
The constructor.
|
Modifier and Type | Method and Description |
---|---|
List |
createGeneric()
This method creates a new instance of the generic
Collection type <COLLECTION>. |
List |
createGeneric(int capacity)
This method creates a new instance of the generic
Collection type <COLLECTION> with the given
initial capacity . |
Class<List> |
getCollectionInterface()
This method gets the interface of the
Collection managed by this factory. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
create, create
getCollectionImplementation
public Class<List> getCollectionInterface()
CollectionFactory
Collection
managed by this factory.getCollectionInterface
in interface CollectionFactory<List>
Collection
interface.public List createGeneric()
CollectionFactory
Collection
type <COLLECTION>.createGeneric
in interface CollectionFactory<List>
public List createGeneric(int capacity)
CollectionFactory
Collection
type <COLLECTION> with the given
initial capacity
.createGeneric
in interface CollectionFactory<List>
capacity
- is the initial capacity of the collection.Copyright © 2001–2016 mmm-Team. All rights reserved.