| 
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||
java.lang.Objectnet.sf.saxon.sort.IntToIntHashMap
public class IntToIntHashMap
A hash table that maps int keys to int values.
| 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.  | 
 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.  | 
| Methods inherited from class java.lang.Object | 
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Constructor Detail | 
|---|
public IntToIntHashMap()
public IntToIntHashMap(int capacity)
capacity - the initial capacity.
public IntToIntHashMap(int capacity,
                       double factor)
capacity - the initial capacity.factor - the load factor.| Method Detail | 
|---|
public void setDefaultValue(int defaultValue)
public int getDefaultValue()
public void clear()
public boolean find(int key)
key - Key
public int get(int key)
key - Key
public int size()
public boolean remove(int key)
key - Key to remove
public void put(int key,
                int value)
key - Keyvalue - Valuepublic IntIterator keyIterator()
  | 
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||