Constructor and Description |
---|
BimodalMap(int cutoff) |
Modifier and Type | Method and Description |
---|---|
void |
clear() |
boolean |
containsKey(Object key) |
boolean |
containsValue(Object value) |
Set<Map.Entry<K,V>> |
entrySet() |
V |
get(Object key) |
boolean |
isEmpty() |
Set<K> |
keySet() |
V |
put(K key,
V value) |
void |
putAll(Map<? extends K,? extends V> t) |
V |
remove(Object key) |
int |
size() |
Collection<V> |
values() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
compute, computeIfAbsent, computeIfPresent, equals, forEach, getOrDefault, hashCode, merge, putIfAbsent, remove, replace, replace, replaceAll
public BimodalMap(int cutoff)
cutoff
- the map size at which to switch from the small map implementation to the large map implementationpublic boolean containsKey(Object key)
containsKey
in interface Map<K,V>
public boolean containsValue(Object value)
containsValue
in interface Map<K,V>
public V remove(Object key)
remove
in interface Map<K,V>
UnsupportedOperationException
- if the backingStore doesn't support removepublic void putAll(Map<? extends K,? extends V> t) throws UnsupportedOperationException
putAll
in interface Map<K,V>
UnsupportedOperationException