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