public interface ConcurrentLinkedQueueStrategy<T> extends IsQueueStrategy<ConcurrentLinkedQueue<T>,T>
Strategy for a concurrent linked queue.
| Modifier and Type | Method and Description |
|---|---|
static <T> ConcurrentLinkedQueueStrategy<T> |
create()
Creates a new concurrent linked queue strategy.
|
default ConcurrentLinkedQueue<T> |
get()
Returns a new collection of requested type.
|
default ConcurrentLinkedQueue<T> |
get(Collection<T> collection)
Returns a new collection for the given collection.
|
isList, isQueue, isSetdefault ConcurrentLinkedQueue<T> get(Collection<T> collection)
IsCollectionStrategyReturns a new collection for the given collection.
get in interface IsCollectionStrategy<ConcurrentLinkedQueue<T>,T>get in interface IsQueueStrategy<ConcurrentLinkedQueue<T>,T>collection - input collectiondefault ConcurrentLinkedQueue<T> get()
IsCollectionStrategyReturns a new collection of requested type.
get in interface IsCollectionStrategy<ConcurrentLinkedQueue<T>,T>get in interface IsQueueStrategy<ConcurrentLinkedQueue<T>,T>static <T> ConcurrentLinkedQueueStrategy<T> create()
Creates a new concurrent linked queue strategy.
T - type for the objects in the queueCopyright © 2016–2017. All rights reserved.