| java.lang.Object bak.pcj.map.AbstractCharKeyDoubleMap bak.pcj.map.CharKeyDoubleOpenHashMap
Field Summary | |
final public static int | DEFAULT_CAPACITY The default capacity of this map. | final public static int | DEFAULT_GROWTH_CHUNK The default chunk size with which to increase the capacity of this map. | final public static double | DEFAULT_GROWTH_FACTOR The default factor with which to increase the capacity of this map. | final public static double | DEFAULT_LOAD_FACTOR The default load factor of this map. |
Constructor Summary | |
public | CharKeyDoubleOpenHashMap() Creates a new hash map with capacity 11, a relative
growth factor of 1.0, and a load factor of 75%. | public | CharKeyDoubleOpenHashMap(CharKeyDoubleMap map) Creates a new hash map with the same mappings as a specified map. | public | CharKeyDoubleOpenHashMap(int capacity) Creates a new hash map with a specified capacity, a relative
growth factor of 1.0, and a load factor of 75%. | public | CharKeyDoubleOpenHashMap(double loadFactor) Creates a new hash map with a capacity of 11, a relative
growth factor of 1.0, and a specified load factor. | public | CharKeyDoubleOpenHashMap(int capacity, double loadFactor) Creates a new hash map with a specified capacity and
load factor, and a relative growth factor of 1.0. | public | CharKeyDoubleOpenHashMap(int capacity, double loadFactor, double growthFactor) Creates a new hash map with a specified capacity,
load factor, and relative growth factor. | public | CharKeyDoubleOpenHashMap(int capacity, double loadFactor, int growthChunk) Creates a new hash map with a specified capacity,
load factor, and absolute growth factor.
The map capacity increases to capacity()+growthChunk.
This strategy is good for avoiding wasting memory. | public | CharKeyDoubleOpenHashMap(CharHashFunction keyhash) Creates a new hash map with capacity 11, a relative
growth factor of 1.0, and a load factor of 75%. | public | CharKeyDoubleOpenHashMap(CharHashFunction keyhash, int capacity) Creates a new hash map with a specified capacity, a relative
growth factor of 1.0, and a load factor of 75%. | public | CharKeyDoubleOpenHashMap(CharHashFunction keyhash, double loadFactor) Creates a new hash map with a capacity of 11, a relative
growth factor of 1.0, and a specified load factor. | public | CharKeyDoubleOpenHashMap(CharHashFunction keyhash, int capacity, double loadFactor) Creates a new hash map with a specified capacity and
load factor, and a relative growth factor of 1.0. | public | CharKeyDoubleOpenHashMap(CharHashFunction keyhash, int capacity, double loadFactor, double growthFactor) Creates a new hash map with a specified capacity,
load factor, and relative growth factor. | public | CharKeyDoubleOpenHashMap(CharHashFunction keyhash, int capacity, double loadFactor, int growthChunk) Creates a new hash map with a specified capacity,
load factor, and absolute growth factor.
The map capacity increases to capacity()+growthChunk.
This strategy is good for avoiding wasting memory. |
DEFAULT_CAPACITY | final public static int DEFAULT_CAPACITY(Code) | | The default capacity of this map.
|
DEFAULT_GROWTH_CHUNK | final public static int DEFAULT_GROWTH_CHUNK(Code) | | The default chunk size with which to increase the capacity of this map.
|
DEFAULT_GROWTH_FACTOR | final public static double DEFAULT_GROWTH_FACTOR(Code) | | The default factor with which to increase the capacity of this map.
|
DEFAULT_LOAD_FACTOR | final public static double DEFAULT_LOAD_FACTOR(Code) | | The default load factor of this map.
|
CharKeyDoubleOpenHashMap | public CharKeyDoubleOpenHashMap()(Code) | | Creates a new hash map with capacity 11, a relative
growth factor of 1.0, and a load factor of 75%.
|
CharKeyDoubleOpenHashMap | public CharKeyDoubleOpenHashMap(CharKeyDoubleMap map)(Code) | | Creates a new hash map with the same mappings as a specified map.
Parameters: map - the map whose mappings to put into the new map. throws: NullPointerException - if map is null. |
CharKeyDoubleOpenHashMap | public CharKeyDoubleOpenHashMap(int capacity)(Code) | | Creates a new hash map with a specified capacity, a relative
growth factor of 1.0, and a load factor of 75%.
Parameters: capacity - the initial capacity of the map. throws: IllegalArgumentException - if capacity is negative. |
CharKeyDoubleOpenHashMap | public CharKeyDoubleOpenHashMap(double loadFactor)(Code) | | Creates a new hash map with a capacity of 11, a relative
growth factor of 1.0, and a specified load factor.
Parameters: loadFactor - the load factor of the map. throws: IllegalArgumentException - if capacity is negative;if loadFactor is not positive. |
CharKeyDoubleOpenHashMap | public CharKeyDoubleOpenHashMap(int capacity, double loadFactor)(Code) | | Creates a new hash map with a specified capacity and
load factor, and a relative growth factor of 1.0.
Parameters: capacity - the initial capacity of the map. Parameters: loadFactor - the load factor of the map. throws: IllegalArgumentException - if capacity is negative;if loadFactor is not positive. |
CharKeyDoubleOpenHashMap | public CharKeyDoubleOpenHashMap(int capacity, double loadFactor, double growthFactor)(Code) | | Creates a new hash map with a specified capacity,
load factor, and relative growth factor.
The map capacity increases to capacity()*(1+growthFactor).
This strategy is good for avoiding many capacity increases, but
the amount of wasted memory is approximately the size of the map.
Parameters: capacity - the initial capacity of the map. Parameters: loadFactor - the load factor of the map. Parameters: growthFactor - the relative amount with which to increase thethe capacity when a capacity increase is needed. throws: IllegalArgumentException - if capacity is negative;if loadFactor is not positive;if growthFactor is not positive. |
CharKeyDoubleOpenHashMap | public CharKeyDoubleOpenHashMap(int capacity, double loadFactor, int growthChunk)(Code) | | Creates a new hash map with a specified capacity,
load factor, and absolute growth factor.
The map capacity increases to capacity()+growthChunk.
This strategy is good for avoiding wasting memory. However, an
overhead is potentially introduced by frequent capacity increases.
Parameters: capacity - the initial capacity of the map. Parameters: loadFactor - the load factor of the map. Parameters: growthChunk - the absolute amount with which to increase thethe capacity when a capacity increase is needed. throws: IllegalArgumentException - if capacity is negative;if loadFactor is not positive;if growthChunk is not positive. |
CharKeyDoubleOpenHashMap | public CharKeyDoubleOpenHashMap(CharHashFunction keyhash)(Code) | | Creates a new hash map with capacity 11, a relative
growth factor of 1.0, and a load factor of 75%.
Parameters: keyhash - the hash function to use when hashing keys. throws: NullPointerException - if keyhash is null. |
CharKeyDoubleOpenHashMap | public CharKeyDoubleOpenHashMap(CharHashFunction keyhash, int capacity)(Code) | | Creates a new hash map with a specified capacity, a relative
growth factor of 1.0, and a load factor of 75%.
Parameters: keyhash - the hash function to use when hashing keys. Parameters: capacity - the initial capacity of the map. throws: IllegalArgumentException - if capacity is negative. throws: NullPointerException - if keyhash is null. |
CharKeyDoubleOpenHashMap | public CharKeyDoubleOpenHashMap(CharHashFunction keyhash, double loadFactor)(Code) | | Creates a new hash map with a capacity of 11, a relative
growth factor of 1.0, and a specified load factor.
Parameters: keyhash - the hash function to use when hashing keys. Parameters: loadFactor - the load factor of the map. throws: IllegalArgumentException - if capacity is negative;if loadFactor is not positive. throws: NullPointerException - if keyhash is null. |
CharKeyDoubleOpenHashMap | public CharKeyDoubleOpenHashMap(CharHashFunction keyhash, int capacity, double loadFactor)(Code) | | Creates a new hash map with a specified capacity and
load factor, and a relative growth factor of 1.0.
Parameters: keyhash - the hash function to use when hashing keys. Parameters: capacity - the initial capacity of the map. Parameters: loadFactor - the load factor of the map. throws: IllegalArgumentException - if capacity is negative;if loadFactor is not positive. throws: NullPointerException - if keyhash is null. |
CharKeyDoubleOpenHashMap | public CharKeyDoubleOpenHashMap(CharHashFunction keyhash, int capacity, double loadFactor, double growthFactor)(Code) | | Creates a new hash map with a specified capacity,
load factor, and relative growth factor.
The map capacity increases to capacity()*(1+growthFactor).
This strategy is good for avoiding many capacity increases, but
the amount of wasted memory is approximately the size of the map.
Parameters: keyhash - the hash function to use when hashing keys. Parameters: capacity - the initial capacity of the map. Parameters: loadFactor - the load factor of the map. Parameters: growthFactor - the relative amount with which to increase thethe capacity when a capacity increase is needed. throws: IllegalArgumentException - if capacity is negative;if loadFactor is not positive;if growthFactor is not positive. throws: NullPointerException - if keyhash is null. |
CharKeyDoubleOpenHashMap | public CharKeyDoubleOpenHashMap(CharHashFunction keyhash, int capacity, double loadFactor, int growthChunk)(Code) | | Creates a new hash map with a specified capacity,
load factor, and absolute growth factor.
The map capacity increases to capacity()+growthChunk.
This strategy is good for avoiding wasting memory. However, an
overhead is potentially introduced by frequent capacity increases.
Parameters: keyhash - the hash function to use when hashing keys. Parameters: capacity - the initial capacity of the map. Parameters: loadFactor - the load factor of the map. Parameters: growthChunk - the absolute amount with which to increase thethe capacity when a capacity increase is needed. throws: IllegalArgumentException - if capacity is negative;if loadFactor is not positive;if growthChunk is not positive. throws: NullPointerException - if keyhash is null. |
clear | public void clear()(Code) | | |
clone | public Object clone()(Code) | | Returns a clone of this hash map.
a clone of this hash map. since: 1.1 |
containsKey | public boolean containsKey(char key)(Code) | | |
containsValue | public boolean containsValue(double value)(Code) | | |
get | public double get(char key)(Code) | | |
isEmpty | public boolean isEmpty()(Code) | | |
lget | public double lget()(Code) | | |
put | public double put(char key, double value)(Code) | | |
remove | public double remove(char key)(Code) | | |
tget | public double tget(char key)(Code) | | |
|
|