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