net.sf.saxon.sort
public class IntHashMap extends Object implements Serializable
Constructor Summary | |
---|---|
IntHashMap()
Initializes a map with a capacity of 8 and a load factor of 0,25. | |
IntHashMap(int capacity)
Initializes a map with the given capacity and a load factor of 0,25.
| |
IntHashMap(int capacity, double factor)
Constructs a new map with initial capacity, and load factor.
|
Method Summary | |
---|---|
void | clear()
Clears the map. |
IntHashMap | copy()
Create a copy of the IntHashMap |
void | display()
Diagnostic display of contents |
Object | get(int key)
Gets the value for this key.
|
IntIterator | keyIterator()
Get an iterator over the keys |
void | put(int key, Object value)
Adds a key-value pair to the map.
|
boolean | remove(int key)
Removes a key from the map.
|
int | size()
Gets the size of the map.
|
Iterator | valueIterator()
Get an iterator over the values |
Parameters: capacity the initial capacity.
Parameters: capacity the initial capacity. factor the load factor.
Parameters: key Key
Returns: the value, null if not found.
Parameters: key Key value Value
Parameters: key Key to remove
Returns: true if the value was removed
Returns: the size (the number of entries in the map)