Class OrderedIntKeyHashMap<V>
java.lang.Object
org.hsqldb.lib.IntKeyHashMap<V>
org.hsqldb.lib.OrderedIntKeyHashMap<V>
A Map of int primitives to Object values which maintains the insertion order
of the key/value pairs and allows access by index. Iterators return the keys
or values in the index order.
- Since:
- 2.0.0
- Author:
- Fred Toussi (fredt@users dot sourceforge.net)
-
Nested Class Summary
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclear()Clear the map completely.org.hsqldb.map.BaseHashMapclone()intgetIndex(int key) intgetKeyAt(int lookup, int def) getValueAt(int index) booleanbooleanisEmpty()remove(int key) voidremoveEntry(int index) booleanbooleansetKeyAt(int index, int key) setValueAt(int index, Object value) intsize()Methods inherited from class IntKeyHashMap
containsKey, containsKey, containsValue, entrySet, get, get, getKeyArray, getValueArray, keySet, keysToArray, put, put, putAll, remove, values, valuesToArray, valuesToArray
-
Field Details
-
ACCESS_MAX
public static final int ACCESS_MAX- See Also:
-
emptyObjectArray
-
-
Constructor Details
-
OrderedIntKeyHashMap
public OrderedIntKeyHashMap() -
OrderedIntKeyHashMap
- Throws:
IllegalArgumentException
-
-
Method Details
-
getKeyAt
public int getKeyAt(int lookup, int def) -
getValueAt
-
setValueAt
-
set
- Throws:
IndexOutOfBoundsException
-
insert
- Throws:
IndexOutOfBoundsException
-
setKeyAt
- Throws:
IndexOutOfBoundsException
-
getIndex
public int getIndex(int key) -
remove
- Overrides:
removein classIntKeyHashMap<V>
-
removeEntry
- Throws:
IndexOutOfBoundsException
-
clear
public void clear()Clear the map completely. -
size
public int size() -
isEmpty
public boolean isEmpty() -
clone
public org.hsqldb.map.BaseHashMap clone()
-