net.sf.mmm.util.collection.api
Interface DequeFactory

All Superinterfaces:
CollectionFactory<Deque>
All Known Implementing Classes:
AbstractDequeFactory, LinkedListDequeFactory

public interface DequeFactory
extends CollectionFactory<Deque>

This is the interface for a CollectionFactory that creates instances of Deque.

Since:
1.0.1
Author:
Joerg Hohwiller (hohwille at users.sourceforge.net)
See Also:
LinkedListDequeFactory.INSTANCE

Method Summary
<E> Deque<E>
create()
          This method creates a new Collection instance.
<E> Deque<E>
create(int capacity)
          This method creates a new Collection instance with the given initial capacity.
 
Methods inherited from interface net.sf.mmm.util.collection.api.CollectionFactory
createGeneric, createGeneric, getCollectionImplementation, getCollectionInterface
 

Method Detail

create

<E> Deque<E> create()
This method creates a new Collection instance.
It is explicitly typed and respects the generic element type of the collection. Therefore the type of the Collection can NOT be bound to the generic type <COLLECTION> because of limitations in Java's generic type system. You need to work on the actual sub-interface (e.g. ListFactory) to get the proper result type.

Specified by:
create in interface CollectionFactory<Deque>
Type Parameters:
E - the type of elements contained in the collection.
Returns:
the new collection instance.
See Also:
CollectionFactory.createGeneric()

create

<E> Deque<E> create(int capacity)
This method creates a new Collection instance with the given initial capacity.
It is explicitly typed and respects the generic element type of the collection. Therefore the type of the Collection can NOT be bound to the generic type <COLLECTION> because of limitations in Java's generic type system. You need to work on the actual sub-interface (e.g. ListFactory) to get the proper result type.

Specified by:
create in interface CollectionFactory<Deque>
Type Parameters:
E - the type of elements contained in the collection.
Parameters:
capacity - is the initial capacity of the collection.
Returns:
the new collection instance.
See Also:
CollectionFactory.createGeneric(int)


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