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

java.lang.Object
  extended by net.sf.mmm.util.collection.base.AbstractSortedSetFactory
All Implemented Interfaces:
CollectionFactory<SortedSet>, SortedSetFactory
Direct Known Subclasses:
TreeSetFactory

public abstract class AbstractSortedSetFactory
extends Object
implements SortedSetFactory

This is the abstract base implementation of the SortedSetFactory interface.

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

Constructor Summary
AbstractSortedSetFactory()
          The constructor.
 
Method Summary
 SortedSet createGeneric()
          This method creates a new instance of the generic Collection type <COLLECTION>.
 SortedSet createGeneric(int capacity)
          This method creates a new instance of the generic Collection type <COLLECTION> with the given initial capacity.
 Class<SortedSet> getCollectionInterface()
          This method gets the interface of the Collection 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.SortedSetFactory
create, create
 
Methods inherited from interface net.sf.mmm.util.collection.api.CollectionFactory
getCollectionImplementation
 

Constructor Detail

AbstractSortedSetFactory

public AbstractSortedSetFactory()
The constructor.

Method Detail

getCollectionInterface

public Class<SortedSet> getCollectionInterface()
This method gets the interface of the Collection managed by this factory.

Specified by:
getCollectionInterface in interface CollectionFactory<SortedSet>
Returns:
the Collection interface.

createGeneric

public SortedSet createGeneric()
This method creates a new instance of the generic Collection type <COLLECTION>.

Specified by:
createGeneric in interface CollectionFactory<SortedSet>
Returns:
the new collection instance.

createGeneric

public SortedSet createGeneric(int capacity)
This method creates a new instance of the generic Collection type <COLLECTION> with the given initial capacity.

Specified by:
createGeneric in interface CollectionFactory<SortedSet>
Parameters:
capacity - is the initial capacity of the collection.
Returns:
the new collection instance.


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