| java.lang.Object bak.pcj.map.AbstractFloatKeyLongMap bak.pcj.map.FloatKeyLongChainedHashMap
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 | FloatKeyLongChainedHashMap() Creates a new hash map with capacity 11, a relative
growth factor of 1.0, and a load factor of 75%. | public | FloatKeyLongChainedHashMap(FloatKeyLongMap map) Creates a new hash map with the same mappings as a specified map. | public | FloatKeyLongChainedHashMap(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 | FloatKeyLongChainedHashMap(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 | FloatKeyLongChainedHashMap(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 | FloatKeyLongChainedHashMap(int capacity, double loadFactor, double growthFactor) Creates a new hash map with a specified capacity,
load factor, and relative growth factor. | public | FloatKeyLongChainedHashMap(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 | FloatKeyLongChainedHashMap(FloatHashFunction keyhash) Creates a new hash map with capacity 11, a relative
growth factor of 1.0, and a load factor of 75%. | public | FloatKeyLongChainedHashMap(FloatHashFunction 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 | FloatKeyLongChainedHashMap(FloatHashFunction 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 | FloatKeyLongChainedHashMap(FloatHashFunction 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 | FloatKeyLongChainedHashMap(FloatHashFunction keyhash, int capacity, double loadFactor, double growthFactor) Creates a new hash map with a specified capacity,
load factor, and relative growth factor. | public | FloatKeyLongChainedHashMap(FloatHashFunction 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.
|
FloatKeyLongChainedHashMap | public FloatKeyLongChainedHashMap()(Code) | | Creates a new hash map with capacity 11, a relative
growth factor of 1.0, and a load factor of 75%.
|
FloatKeyLongChainedHashMap | public FloatKeyLongChainedHashMap(FloatKeyLongMap 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. |
FloatKeyLongChainedHashMap | public FloatKeyLongChainedHashMap(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. |
FloatKeyLongChainedHashMap | public FloatKeyLongChainedHashMap(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. |
FloatKeyLongChainedHashMap | public FloatKeyLongChainedHashMap(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. |
FloatKeyLongChainedHashMap | public FloatKeyLongChainedHashMap(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. |
FloatKeyLongChainedHashMap | public FloatKeyLongChainedHashMap(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; |
FloatKeyLongChainedHashMap | public FloatKeyLongChainedHashMap(FloatHashFunction 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. |
FloatKeyLongChainedHashMap | public FloatKeyLongChainedHashMap(FloatHashFunction 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. |
FloatKeyLongChainedHashMap | public FloatKeyLongChainedHashMap(FloatHashFunction 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. throws: NullPointerException - if keyhash is null. |
FloatKeyLongChainedHashMap | public FloatKeyLongChainedHashMap(FloatHashFunction 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. |
FloatKeyLongChainedHashMap | public FloatKeyLongChainedHashMap(FloatHashFunction 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. |
FloatKeyLongChainedHashMap | public FloatKeyLongChainedHashMap(FloatHashFunction 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(float key)(Code) | | |
containsValue | public boolean containsValue(long value)(Code) | | |
get | public long get(float key)(Code) | | |
isEmpty | public boolean isEmpty()(Code) | | |
put | public long put(float key, long value)(Code) | | |
remove | public long remove(float key)(Code) | | |
tget | public long tget(float key)(Code) | | |
|
|