net.sf.saxon.sort
public class IntToIntHashMap extends Object implements Serializable
Constructor Summary | |
---|---|
IntToIntHashMap()
Initializes a map with a capacity of 8 and a load factor of 0,25. | |
IntToIntHashMap(int capacity)
Initializes a map with the given capacity and a load factor of 0,25.
| |
IntToIntHashMap(int capacity, double factor)
Constructs a new map with initial capacity, and load factor.
|
Method Summary | |
---|---|
void | clear()
Clears the map. |
boolean | find(int key)
Finds a key in the map.
|
int | get(int key)
Gets the value for this key.
|
void | put(int key, int value)
Adds a key-value pair to the map.
|
boolean | remove(int key)
Removes a key from the map.
|
void | setDefaultValue(int defaultValue)
Set the value to be returned to indicate an unused entry |
int | size()
Gets the size of the map.
|
Parameters: capacity the initial capacity.
Parameters: capacity the initial capacity. factor the load factor.
Parameters: key Key
Returns: true if the key is mapped
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