Package gw.util
Class DerivedKeyHashMap<K,V>
- java.lang.Object
-
- gw.util.DerivedKeyHashMap<K,V>
-
-
Constructor Summary
Constructors Constructor Description DerivedKeyHashMap()
DerivedKeyHashMap(Collection<V> values)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description void
clear()
boolean
containsKey(Object key)
boolean
containsValue(Object value)
Set<Map.Entry<K,V>>
entrySet()
V
get(Object key)
protected abstract K
getKeyForValue(V value)
protected int
hash(Object key)
boolean
isEmpty()
protected abstract boolean
keyMatches(Object key, V value)
Set<K>
keySet()
protected abstract double
loadFactor()
V
put(K key, V value)
void
putAll(Map<? extends K,? extends V> m)
V
putImpl(K key, V value, Object[] table, boolean resizeIfNecessary)
V
remove(Object key)
int
size()
Collection<V>
values()
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface java.util.Map
compute, computeIfAbsent, computeIfPresent, equals, forEach, getOrDefault, hashCode, merge, putIfAbsent, remove, replace, replace, replaceAll
-
-
-
-
Constructor Detail
-
DerivedKeyHashMap
public DerivedKeyHashMap()
-
DerivedKeyHashMap
public DerivedKeyHashMap(Collection<V> values)
-
-
Method Detail
-
hash
protected int hash(Object key)
-
loadFactor
protected abstract double loadFactor()
-
containsKey
public boolean containsKey(Object key)
- Specified by:
containsKey
in interfaceMap<K,V>
-
containsValue
public boolean containsValue(Object value)
- Specified by:
containsValue
in interfaceMap<K,V>
-
-