- java.lang.Object
-
- org.hsqldb.map.BaseHashMap
-
- org.hsqldb.lib.IntKeyHashMap<V>
-
- All Implemented Interfaces:
Map<java.lang.Integer,V>
- Direct Known Subclasses:
OrderedIntKeyHashMap
public class IntKeyHashMap<V> extends org.hsqldb.map.BaseHashMap implements Map<java.lang.Integer,V>
A Map of int primitives to Object values.- Since:
- 1.7.2
- Author:
- Fred Toussi (fredt@users dot sourceforge.net)
-
-
Constructor Summary
Constructors Constructor Description IntKeyHashMap()
IntKeyHashMap(int initialCapacity)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
containsKey(int key)
boolean
containsKey(java.lang.Object key)
boolean
containsValue(java.lang.Object value)
Set<Map.Entry<java.lang.Integer,V>>
entrySet()
V
get(int key)
V
get(java.lang.Integer key)
int[]
getKeyArray()
java.lang.Object[]
getValueArray()
Set<java.lang.Integer>
keySet()
int[]
keysToArray(int[] array)
V
put(int key, V value)
V
put(java.lang.Integer key, V value)
void
putAll(IntKeyHashMap<V> other)
V
remove(int key)
V
remove(java.lang.Object key)
Collection<V>
values()
java.lang.Object[]
valuesToArray()
<T> T[]
valuesToArray(T[] array)
-
-
-
Method Detail
-
containsKey
public boolean containsKey(java.lang.Object key)
- Specified by:
containsKey
in interfaceMap<java.lang.Integer,V>
-
containsKey
public boolean containsKey(int key)
-
containsValue
public boolean containsValue(java.lang.Object value)
- Specified by:
containsValue
in interfaceMap<java.lang.Integer,V>
-
get
public V get(int key)
-
remove
public V remove(java.lang.Object key)
-
remove
public V remove(int key)
-
putAll
public void putAll(IntKeyHashMap<V> other)
-
keysToArray
public int[] keysToArray(int[] array)
-
valuesToArray
public java.lang.Object[] valuesToArray()
-
valuesToArray
public <T> T[] valuesToArray(T[] array)
-
getKeyArray
public int[] getKeyArray()
-
getValueArray
public java.lang.Object[] getValueArray()
-
keySet
public Set<java.lang.Integer> keySet()
-
values
public Collection<V> values()
-
-