Maven module :un.api : api-common :
Class :
un.api.collection.HashDictionary
Extends/Implements :
un.api.collection.AbstractDictionary
Subclasses : -
Variables :
DEFAULT_SIZE,
LOAD_MAX,
LOAD_MIN,
RESIZE_UP,
RESIZE_DOWN,
hasher,
table,
size
Functions :
HashDictionary,
HashDictionary,
HashDictionary,
getSize,
containsKey,
getValue,
add,
remove,
getKeys,
getValues,
getPairs,
removeAll,
resize,
offset,
loadRatio
protected int
DEFAULT_SIZE
protected float
LOAD_MAX
protected float
LOAD_MIN
protected int
RESIZE_UP
protected float
RESIZE_DOWN
protected Hasher
hasher
protected HPair[]
table
protected int
size
public void
HashDictionary ()
public void
HashDictionary (Hasher hasher)
public void
HashDictionary (Hasher hasher, int size)
public int
getSize ()
public boolean
containsKey (Object key)
public Object
getValue (Object key)
public void
add (Object key, Object value)
public Object
remove (Object key)
public Set
getKeys ()
public Collection
getValues ()
public Collection
getPairs ()
public void
removeAll ()
void
resize (int size)
int
offset (int keyHash)
float
loadRatio ()
This implementation is inspired from :
http://www.monkey-x.com/Community/posts.php?topic=3929
author Johann Sorel