public interface HashtableStrategy<K,V> extends IsHashtableStrategy<K,V>
Strategy for a hash table.
| Modifier and Type | Method and Description |
|---|---|
static <K,V> HashtableStrategy<K,V> |
create()
Creates a new hash table strategy.
|
default Hashtable<K,V> |
get()
Returns a new map for the used strategy.
|
default Hashtable<K,V> |
get(Map<K,V> map)
Returns a new map for the used strategy initialized with the elements of another map.
|
isAbstractMap, isConcurrentMap, isHashtable, isNavigableMap, isSortedMapdefault Hashtable<K,V> get()
IsMapStrategyReturns a new map for the used strategy.
get in interface IsHashtableStrategy<K,V>get in interface IsMapStrategy<K,V>default Hashtable<K,V> get(Map<K,V> map)
IsMapStrategyReturns a new map for the used strategy initialized with the elements of another map.
get in interface IsHashtableStrategy<K,V>get in interface IsMapStrategy<K,V>map - input mapstatic <K,V> HashtableStrategy<K,V> create()
Creates a new hash table strategy.
K - type of the keys in the tableV - type of the values in the tableCopyright © 2016–2017. All rights reserved.