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 TypeMethodDescriptionint
getIndex
(int key) int
getKeyAt
(int lookup, int def) getValueAt
(int index) boolean
remove
(int key) void
removeEntry
(int index) boolean
boolean
setKeyAt
(int index, int key) setValueAt
(int index, Object value) Methods inherited from class org.hsqldb.lib.IntKeyHashMap
containsKey, containsKey, containsValue, entrySet, get, get, keySet, keysToArray, put, put, putAll, putAll, remove, values, valuesToArray, valuesToArray
Methods 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:
remove
in classIntKeyHashMap<V>
-
removeEntry
- Throws:
IndexOutOfBoundsException
-