| 
 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectnet.sf.saxon.expr.sort.IntHashMap<T>
public class IntHashMap<T>
A hash table that maps int keys to Object values.
| 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<T> | copy()Create a copy of the IntHashMap | 
|  void | display()Diagnostic display of contents | 
|  T | get(int key)Gets the value for this key. | 
|  IntIterator | keyIterator()Get an iterator over the keys | 
|  IntSet | keySet()Get the set of integer keys present in this IntHashSet | 
|  T | put(int key,
    T 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<T> | valueIterator()Get an iterator over the values | 
| Methods inherited from class java.lang.Object | 
|---|
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Constructor Detail | 
|---|
public IntHashMap()
public IntHashMap(int capacity)
capacity - the initial capacity.
public IntHashMap(int capacity,
                  double factor)
capacity - the initial capacity.factor - the load factor.| Method Detail | 
|---|
public void clear()
public T get(int key)
key - Key
public int size()
public boolean remove(int key)
key - Key to remove
public T put(int key,
             T value)
key - Keyvalue - Value
public IntIterator keyIterator()
public Iterator<T> valueIterator()
public IntHashMap<T> copy()
public void display()
public IntSet keySet()
| 
 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||