net.sf.mmm.util.collection.base
Class AbstractMapFactory

java.lang.Object
  extended by net.sf.mmm.util.collection.base.AbstractMapFactory
All Implemented Interfaces:
MapFactory<Map>
Direct Known Subclasses:
HashMapFactory

public abstract class AbstractMapFactory
extends Object
implements MapFactory<Map>

This is the abstract base implementation of the MapFactory interface.

Since:
1.0.1
Author:
Joerg Hohwiller (hohwille at users.sourceforge.net)

Constructor Summary
AbstractMapFactory()
          The constructor.
 
Method Summary
 Map createGeneric()
          This method creates a new instance of the generic Map type <MAP>.
 Map createGeneric(int capacity)
          This method creates a new instance of the generic Map type <MAP>.
 Class<Map> getMapInterface()
          This method gets the interface of the Map managed by this factory.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface net.sf.mmm.util.collection.api.MapFactory
create, create, getMapImplementation
 

Constructor Detail

AbstractMapFactory

public AbstractMapFactory()
The constructor.

Method Detail

getMapInterface

public Class<Map> getMapInterface()
This method gets the interface of the Map managed by this factory.

Specified by:
getMapInterface in interface MapFactory<Map>
Returns:
the Map interface.

createGeneric

public Map createGeneric()
This method creates a new instance of the generic Map type <MAP>.

Specified by:
createGeneric in interface MapFactory<Map>
Returns:
the new Map instance.

createGeneric

public Map createGeneric(int capacity)
This method creates a new instance of the generic Map type <MAP>.

Specified by:
createGeneric in interface MapFactory<Map>
Parameters:
capacity - is the capacity of the map to create.
Returns:
the new Map instance.


Copyright © 2001-2010 mmm-Team. All Rights Reserved.