net.sf.saxon.sort
public class IntToIntArrayMap extends Object implements IntToIntMap, Serializable
Constructor Summary | |
---|---|
IntToIntArrayMap()
Create an initial empty map with default space allocation | |
IntToIntArrayMap(int capacity)
Create an initial empty map with a specified initial capacity |
Method Summary | |
---|---|
void | clear()
Clear the map. |
boolean | find(int key)
Finds a key in the map.
|
int | get(int key)
Gets the value for this key.
|
int | getDefaultValue()
Get the default value used to indicate an unused entry
|
IntIterator | keyIterator()
Get an iterator over the integer key values held in the hash map.
|
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 (the number of entries that can be held before more space is allocated)
Parameters: key Key
Returns: true if the key is mapped
Parameters: key Key
Returns: the value, or the default value if not found.
Returns: the value to be returned by IntToIntArrayMap if no entry exists for the supplied key
The contents of the hash map must not be modified while this iterator remains in use
Returns: an iterator whose next() call returns the key values (in arbitrary order)
Parameters: key Key value Value
Parameters: key Key to remove
Returns: true if the value was removed
Parameters: defaultValue the value to be returned by IntToIntArrayMap if no entry exists for the supplied key
Returns: the size