| Modifier and Type | Field and Description |
|---|---|
protected V |
defaultValue |
protected SimpleHashTable<MapEntry<K,V>> |
entries |
| Constructor and Description |
|---|
AbstractMapImpl(int width) |
AbstractMapImpl(int width,
int initialBucketSize) |
| Modifier and Type | Method and Description |
|---|---|
void |
clear() |
protected MapEntry<K,V> |
findEntry(K key) |
protected MapEntry<K,V> |
findEntry(K key,
SimpleList<MapEntry<K,V>> bucket) |
V |
getDefaultValue() |
void |
setDefaultValue(V defaultValue) |
protected final SimpleHashTable<MapEntry<K,V>> entries
protected V defaultValue
public AbstractMapImpl(int width)
public AbstractMapImpl(int width,
int initialBucketSize)
public void setDefaultValue(V defaultValue)
setDefaultValue in interface SimpleMap<K,V>public V getDefaultValue()
getDefaultValue in interface SimpleMap<K,V>Copyright © 2014–2016 Nikolche Mihajlovski and contributors. All rights reserved.