Package gw.util
Class DerivedKeyHashMap<K,V>
java.lang.Object
gw.util.DerivedKeyHashMap<K,V>
- All Implemented Interfaces:
Map<K,V>
-
Nested Class Summary
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclear()booleancontainsKey(Object key) booleancontainsValue(Object value) entrySet()protected abstract KgetKeyForValue(V value) protected intbooleanisEmpty()protected abstract booleankeyMatches(Object key, V value) keySet()protected abstract doublevoidintsize()values()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.util.Map
compute, computeIfAbsent, computeIfPresent, equals, forEach, getOrDefault, hashCode, merge, putIfAbsent, remove, replace, replace, replaceAll
-
Constructor Details
-
DerivedKeyHashMap
public DerivedKeyHashMap() -
DerivedKeyHashMap
-
-
Method Details
-
hash
-
keyMatches
-
getKeyForValue
-
loadFactor
protected abstract double loadFactor() -
size
public int size() -
isEmpty
public boolean isEmpty() -
containsKey
- Specified by:
containsKeyin interfaceMap<K,V>
-
get
-
containsValue
- Specified by:
containsValuein interfaceMap<K,V>
-
put
-
remove
-
putAll
-
clear
public void clear() -
entrySet
-
keySet
-
values
-
putImpl
-