- java.lang.Object
-
- org.hsqldb.map.BaseHashMap
-
- org.hsqldb.lib.IntKeyHashMapConcurrent<V>
-
- All Implemented Interfaces:
Map<java.lang.Integer,V>
public class IntKeyHashMapConcurrent<V> extends org.hsqldb.map.BaseHashMap implements Map<java.lang.Integer,V>
A Map of int primitives to Object values, suitable for thread-safe access.Iterators of keys or values are not thread-safe.
- Since:
- 1.9.0
- Author:
- Fred Toussi (fredt@users dot sourceforge.net)
-
-
Constructor Summary
Constructors Constructor Description IntKeyHashMapConcurrent()
IntKeyHashMapConcurrent(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
getOrderedKeyMatchCount(int[] array)
java.util.concurrent.locks.Lock
getWriteLock()
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()
<T> T[]
valuesToArray(T[] array)
-
-
-
Method Detail
-
getWriteLock
public java.util.concurrent.locks.Lock getWriteLock()
-
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)
-
getOrderedKeyMatchCount
public int getOrderedKeyMatchCount(int[] array)
-
keysToArray
public int[] keysToArray(int[] array)
-
valuesToArray
public <T> T[] valuesToArray(T[] array)
-
keySet
public Set<java.lang.Integer> keySet()
-
values
public Collection<V> values()
-
-