- java.lang.Object
-
- org.hsqldb.map.BaseHashMap
-
- org.hsqldb.lib.IntValueHashMap<K>
-
public class IntValueHashMap<K> extends org.hsqldb.map.BaseHashMap
A Map of Object keys to int primitive values.This class does not store null keys.
- Since:
- 1.7.2
- Author:
- Fred Toussi (fredt@users dot sourceforge.net)
-
-
Constructor Summary
Constructors Constructor Description IntValueHashMap()
IntValueHashMap(int initialCapacity)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
containsKey(java.lang.Object key)
boolean
containsValue(int value)
boolean
containsValue(java.lang.Object value)
Set<Map.Entry<K,java.lang.Integer>>
entrySet()
int
get(java.lang.Object key)
int
get(java.lang.Object key, int defaultValue)
boolean
get(java.lang.Object key, int[] value)
java.lang.Object
getKey(int value)
Set<K>
keySet()
boolean
put(K key, int value)
void
putAll(IntValueHashMap<K> other)
boolean
remove(java.lang.Object key)
Collection<java.lang.Integer>
values()
-
-
-
Method Detail
-
containsKey
public boolean containsKey(java.lang.Object key)
-
containsValue
public boolean containsValue(java.lang.Object value)
-
containsValue
public boolean containsValue(int value)
-
get
public int get(java.lang.Object key) throws java.util.NoSuchElementException
- Throws:
java.util.NoSuchElementException
-
get
public int get(java.lang.Object key, int defaultValue)
-
get
public boolean get(java.lang.Object key, int[] value)
-
getKey
public java.lang.Object getKey(int value)
-
put
public boolean put(K key, int value)
-
remove
public boolean remove(java.lang.Object key)
-
putAll
public void putAll(IntValueHashMap<K> other)
-
values
public Collection<java.lang.Integer> values()
-
-