org.axiondb.engine.rowcollection
public class IntHashMap extends Object
Version: $Revision: 1.2 $ $Date: 2005/12/22 09:02:30 $
| Nested Class Summary | |
|---|---|
| static class | IntHashMap.Entry
This class represents a IntHashMapentry. |
| class | IntHashMap.EntryIterator |
| class | IntHashMap.ValueIterator |
| protected class | IntHashMap.Values |
| Constructor Summary | |
|---|---|
| IntHashMap() Creates an IntHashMap of small initial capacity. | |
| IntHashMap(int capacity)
Creates an IntHashMap of specified initial capacity. | |
| IntHashMap(IntHashMap map)
Creates a IntHashMap containing the specified entries, in the order they are
returned by the map's iterator.
| |
| Method Summary | |
|---|---|
| protected void | addEntry(int hash, int key, Object value)
Adds a new entry for the specified key and value.
|
| void | clear()
Removes all mappings from this IntHashMap. |
| boolean | containsKey(int key)
Indicates if this IntHashMapcontains a mapping for the specified key.
|
| boolean | containsValue(Object value)
Indicates if this IntHashMapmaps one or more keys to the specified value.
|
| IntHashMap.EntryIterator | entryIterator() |
| boolean | equals(Object obj)
Compares the specified object with this IntHashMapfor equality. |
| Object | get(int key)
Returns the value to which this IntHashMapmaps the specified key.
|
| IntHashMap.Entry | getEntry(int key)
Returns the entry with the specified key.
|
| int | hashCode()
Returns the hash code value for this IntHashMap.
|
| IntHashMap.Entry | headEntry()
Returns the head entry of this map.
|
| boolean | isEmpty()
Indicates if this IntHashMapcontains no key-value mappings.
|
| IntListIterator | keyIterator() |
| IntCollection | keys() |
| protected IntHashMap.Entry | newEntry()
Returns a new entry for this map; sub-classes may override this method to use
custom entries.
|
| Object | put(int key, Object value)
Associates the specified value with the specified key in this IntHashMap.
|
| void | putAll(IntHashMap that)
Copies all of the mappings from the specified map to this IntHashMap.
|
| Object | remove(int key)
Removes the mapping for this key from this IntHashMapif present.
|
| void | removeEntry(IntHashMap.Entry entry)
Removes the specified entry from the map.
|
| int | size()
Returns the number of key-value mappings in this IntHashMap.
|
| IntHashMap.Entry | tailEntry()
Returns the tail entry of this map.
|
| String | toString()
Returns the textual representation of this IntHashMap.
|
| IntHashMap.ValueIterator | valueIterator()
Returns a list iterator over the values in this list in proper sequence, (this map
maintains the insertion order).
|
| IntHashMap.Values | values()
Returns a RowCollectionview of the values contained in this
IntHashMap. |
Parameters: capacity the initial capacity.
Parameters: map the map whose entries are to be placed into this map.
Parameters: hash the hash of the key, generated with IntHashMap. key the entry's key. value the entry's value.
Parameters: key the key whose presence in this map is to be tested.
Returns: true if this map contains a mapping for the specified key;
false otherwise.
Parameters: value the value whose presence in this map is to be tested.
Returns: true if this map maps one or more keys to the specified
value.
true if the given object is also a map and the two maps represent
the same mappings (regardless of collection iteration order).
Parameters: obj the object to be compared for equality with this map.
Returns: true if the specified object is equal to this map;
false otherwise.
Parameters: key the key whose associated value is to be returned.
Returns: the value to which this map maps the specified key, or null
if there is no mapping for the key.
Parameters: key the key whose associated entry is to be returned.
Returns: the entry for the specified key or null if none.
Returns: the hash code value for this map.
Returns: the entry such as headEntry().getNextEntry() holds the first
map entry.
Returns: true if this map contains no key-value mappings;
false otherwise.
Returns: a new entry potentially preallocated.
Parameters: key the key with which the specified value is to be associated. value the value to be associated with the specified key.
Returns: the previous value associated with specified key, or null if
there was no mapping for key. A null return can also
indicate that the map previously associated null with the
specified key.
Parameters: map the mappings to be stored in this map.
Parameters: key the key whose mapping is to be removed from the map.
Returns: previous value associated with specified key, or null if
there was no mapping for key. A null return can also
indicate that the map previously associated null with the
specified key.
Parameters: entry the entry to be removed.
Returns: this map's size.
Returns: the entry such as tailEntry().getPreviousEntry() holds the
last map entry.
Returns: the textual representation of the entry set.
Returns: a list iterator of the values in this list (in proper sequence).
RowIterator.remove,RowCollection.remove and
clear operations.
Returns: a row collection view of the values contained in this map.