Top Description Constructors Methods
org.hsqldb.lib

public Class OrderedIntKeyHashMap<V>

extends IntKeyHashMap<V>
implements Map<Integer, V>
Class Inheritance
All Implemented Interfaces
org.hsqldb.lib.Map

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.
Author
Fred Toussi (fredt@users dot sourceforge.net)
Since
2.0.0
Version
2.6.0

Constructor Summary

AccessConstructor and Description
public
public
OrderedIntKeyHashMap(int initialCapacity)

Method Summary

Modifier and TypeMethod and Description
private void
checkRange(int i)

public int
getIndex(int key)

public int
getKeyAt(int lookup, int def)

public Object
getValueAt(int index)

public boolean
insert(int index, int key, V value)

public V
public void
removeEntry(int index)

public boolean
set(int index, int key, V value)

public boolean
setKeyAt(int index, int key)

public Object
setValueAt(int index, Object value)

Inherited from org.hsqldb.lib.IntKeyHashMap:
containsKeycontainsKeycontainsValueentrySetgetgetgetKeyArraygetValueArraykeySetkeysToArrayputputputAllremovevaluesvaluesToArrayvaluesToArray

Constructor Detail

OrderedIntKeyHashMapback to summary
public OrderedIntKeyHashMap()
OrderedIntKeyHashMapback to summary
public OrderedIntKeyHashMap(int initialCapacity) throws IllegalArgumentException

Method Detail

checkRangeback to summary
private void checkRange(int i)
getIndexback to summary
public int getIndex(int key)
getKeyAtback to summary
public int getKeyAt(int lookup, int def)
getValueAtback to summary
public Object getValueAt(int index)
insertback to summary
public boolean insert(int index, int key, V value) throws IndexOutOfBoundsException
removeback to summary
public V remove(int key)

Overrides org.hsqldb.lib.IntKeyHashMap.remove.

removeEntryback to summary
public void removeEntry(int index) throws IndexOutOfBoundsException
setback to summary
public boolean set(int index, int key, V value) throws IndexOutOfBoundsException
setKeyAtback to summary
public boolean setKeyAt(int index, int key) throws IndexOutOfBoundsException
setValueAtback to summary
public Object setValueAt(int index, Object value)