java.lang.Object
org.hsqldb.map.BaseHashMap
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 inherited from class org.hsqldb.map.BaseHashMap
ACCESS_MAX, emptyObjectArray -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintgetIndex(int key) intgetKeyAt(int lookup, int def) getValueAt(int index) booleanremove(int key) voidremoveEntry(int index) booleanbooleansetKeyAt(int index, int key) setValueAt(int index, Object value) Methods inherited from class org.hsqldb.lib.IntKeyHashMap
containsKey, containsKey, containsValue, entrySet, get, get, getKeyArray, getValueArray, keySet, keysToArray, put, put, putAll, remove, values, valuesToArray, valuesToArrayMethods inherited from class org.hsqldb.map.BaseHashMap
clear, clone, isEmpty, size
-
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
-