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