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

java.lang.Object
  extended by net.sf.mmm.util.collection.base.AbstractConcurrentMapFactory
All Implemented Interfaces:
ConcurrentMapFactory, MapFactory<ConcurrentMap>
Direct Known Subclasses:
ConcurrentHashMapFactory

public abstract class AbstractConcurrentMapFactory
extends Object
implements ConcurrentMapFactory

This is the abstract base implementation of the ConcurrentMapFactory interface.

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

Constructor Summary
AbstractConcurrentMapFactory()
          The constructor.
 
Method Summary
 ConcurrentMap createGeneric()
          This method creates a new instance of the generic Map type <MAP>.
 ConcurrentMap createGeneric(int capacity)
          This method creates a new instance of the generic Map type <MAP>.
 Class<ConcurrentMap> 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.ConcurrentMapFactory
create, create
 
Methods inherited from interface net.sf.mmm.util.collection.api.MapFactory
getMapImplementation
 

Constructor Detail

AbstractConcurrentMapFactory

public AbstractConcurrentMapFactory()
The constructor.

Method Detail

getMapInterface

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

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

createGeneric

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

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

createGeneric

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

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


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