org.sunflow.util
Class FastHashMap<K,V>
java.lang.Object
org.sunflow.util.FastHashMap<K,V>
- Iterable
public class FastHashMap<K,V>
extends java.lang.Object
implements Iterable
Fast hash map implementation which uses array storage along with quadratic
probing to resolve collisions. The capacity is doubled when the load goes
beyond 50% and is halved when the load drops below 20%.
FastHashMap
public FastHashMap()
V>> iterator
public Iterator> iterator()
containsKey
public boolean containsKey(K k)
put
public V put(K k,
V v)
remove
public void remove(K k)