public interface BlockingQueueFactory extends CollectionFactory<BlockingQueue>
LinkedBlockingQueueFactory.INSTANCE
Modifier and Type | Method and Description |
---|---|
<E> BlockingQueue<E> |
create()
This method creates a new
Collection instance. |
<E> BlockingQueue<E> |
create(int capacity)
This method creates a new
Collection instance with the given initial capacity . |
createGeneric, createGeneric, getCollectionImplementation, getCollectionInterface
<E> BlockingQueue<E> create()
Collection
instance. 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.create
in interface CollectionFactory<BlockingQueue>
E
- the type of elements contained in the collection.CollectionFactory.createGeneric()
<E> BlockingQueue<E> create(int capacity)
Collection
instance with the given initial capacity
. 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.create
in interface CollectionFactory<BlockingQueue>
E
- the type of elements contained in the collection.capacity
- is the initial capacity of the collection.CollectionFactory.createGeneric(int)
Copyright © 2001–2014 mmm-Team. All rights reserved.