Method Summary |
|
protected void | addEntry(int hash, int key, Object value) Adds a new entry for the specified key and value. |
public void | clear() Removes all mappings from this
IntHashMap . |
final public boolean | containsKey(int key) Indicates if this
IntHashMap contains a mapping for the specified key.
Parameters: key - the key whose presence in this map is to be tested. |
final public boolean | containsValue(Object value) Indicates if this
IntHashMap maps one or more keys to the specified value.
Parameters: value - the value whose presence in this map is to be tested. |
public EntryIterator | entryIterator() |
public boolean | equals(Object obj) Compares the specified object with this
IntHashMap for equality. |
final public Object | get(int key) Returns the value to which this
IntHashMap maps the specified key.
Parameters: key - the key whose associated value is to be returned. |
final public Entry | getEntry(int key) Returns the entry with the specified key.
Parameters: key - the key whose associated entry is to be returned. |
public int | hashCode() Returns the hash code value for this
IntHashMap . |
final public Entry | headEntry() Returns the head entry of this map. |
final public boolean | isEmpty() Indicates if this
IntHashMap contains no key-value mappings. |
public IntListIterator | keyIterator() |
public IntCollection | keys() |
protected Entry | newEntry() Returns a new entry for this map; sub-classes may override this method to use
custom entries. |
final public Object | put(int key, Object value) Associates the specified value with the specified key in this
IntHashMap .
If the
IntHashMap previously contained a mapping for this key, the old value
is replaced.
Parameters: key - the key with which the specified value is to be associated. Parameters: value - the value to be associated with the specified key. |
final public void | putAll(IntHashMap that) Copies all of the mappings from the specified map to this
IntHashMap . |
final public Object | remove(int key) Removes the mapping for this key from this
IntHashMap if present.
Parameters: key - the key whose mapping is to be removed from the map. |
public void | removeEntry(Entry entry) Removes the specified entry from the map. |
final public int | size() Returns the number of key-value mappings in this
IntHashMap . |
final public Entry | tailEntry() Returns the tail entry of this map. |
public String | toString() Returns the textual representation of this
IntHashMap . |
final public ValueIterator | valueIterator() Returns a list iterator over the values in this list in proper sequence, (this map
maintains the insertion order). |
final public Values | values() Returns a
RowCollection view of the values contained in this
IntHashMap . |