public interface ArrayBlockingQueueStrategy<T> extends IsQueueStrategy<ArrayBlockingQueue<T>,T>
Strategy for an array blocking queue.
| Modifier and Type | Method and Description |
|---|---|
static <T> ArrayBlockingQueueStrategy<T> |
create(int capacity)
Creates a new array blocking queue strategy (as queue).
|
default ArrayBlockingQueue<T> |
get()
Returns a new collection of requested type.
|
default ArrayBlockingQueue<T> |
get(Collection<T> collection)
Returns a new collection for the given collection.
|
default ArrayBlockingQueue<T> |
get(int capacity)
Returns a new collection for the given collection.
|
default ArrayBlockingQueue<T> |
get(int capacity,
Collection<T> collection)
Returns a new collection for the given collection.
|
int |
getCapacity()
Returns the capacity of the strategy.
|
isList, isQueue, isSetdefault ArrayBlockingQueue<T> get(Collection<T> collection)
IsCollectionStrategyReturns a new collection for the given collection.
get in interface IsCollectionStrategy<ArrayBlockingQueue<T>,T>get in interface IsQueueStrategy<ArrayBlockingQueue<T>,T>collection - input collectiondefault ArrayBlockingQueue<T> get()
IsCollectionStrategyReturns a new collection of requested type.
get in interface IsCollectionStrategy<ArrayBlockingQueue<T>,T>get in interface IsQueueStrategy<ArrayBlockingQueue<T>,T>int getCapacity()
Returns the capacity of the strategy.
default ArrayBlockingQueue<T> get(int capacity, Collection<T> collection)
Returns a new collection for the given collection.
capacity - the queue’s capacitycollection - input collectiondefault ArrayBlockingQueue<T> get(int capacity)
Returns a new collection for the given collection.
capacity - the queue’s capacitystatic <T> ArrayBlockingQueueStrategy<T> create(int capacity)
Creates a new array blocking queue strategy (as queue).
T - type for the objects in the queuecapacity - the queue’s capacityCopyright © 2016–2017. All rights reserved.