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