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