- java.lang.Object
-
- org.hsqldb.map.BaseHashMap
-
- org.hsqldb.lib.IntKeyIntValueHashMap
-
- All Implemented Interfaces:
Map<java.lang.Integer,java.lang.Integer>
public class IntKeyIntValueHashMap extends org.hsqldb.map.BaseHashMap implements Map<java.lang.Integer,java.lang.Integer>
A Map of int primitive keys to int primitive values.- Since:
- 1.7.2
- Author:
- Fred Toussi (fredt@users dot sourceforge.net)
-
-
Constructor Summary
Constructors Constructor Description IntKeyIntValueHashMap()
IntKeyIntValueHashMap(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(int value)
boolean
containsValue(java.lang.Object value)
Set<Map.Entry<java.lang.Integer,java.lang.Integer>>
entrySet()
int
get(int key)
int
get(int key, int defaultValue)
boolean
get(int key, int[] value)
java.lang.Integer
get(java.lang.Integer key)
Set<java.lang.Integer>
keySet()
int[]
keysToArray(int[] array)
boolean
put(int key, int value)
java.lang.Integer
put(java.lang.Integer key, java.lang.Integer value)
void
putAll(IntKeyIntValueHashMap other)
boolean
remove(int key)
java.lang.Integer
remove(java.lang.Object key)
Collection<java.lang.Integer>
values()
int[]
valuesToArray(int[] array)
-
-
-
Method Detail
-
containsKey
public boolean containsKey(java.lang.Object key)
- Specified by:
containsKey
in interfaceMap<java.lang.Integer,java.lang.Integer>
-
containsKey
public boolean containsKey(int key)
-
containsValue
public boolean containsValue(java.lang.Object value)
- Specified by:
containsValue
in interfaceMap<java.lang.Integer,java.lang.Integer>
-
containsValue
public boolean containsValue(int value)
-
get
public java.lang.Integer get(java.lang.Integer key)
-
get
public int get(int key) throws java.util.NoSuchElementException
- Throws:
java.util.NoSuchElementException
-
get
public int get(int key, int defaultValue)
-
get
public boolean get(int key, int[] value)
-
put
public java.lang.Integer put(java.lang.Integer key, java.lang.Integer value)
-
put
public boolean put(int key, int value)
-
remove
public java.lang.Integer remove(java.lang.Object key)
-
remove
public boolean remove(int key)
-
putAll
public void putAll(IntKeyIntValueHashMap other)
-
keysToArray
public int[] keysToArray(int[] array)
-
valuesToArray
public int[] valuesToArray(int[] array)
-
keySet
public Set<java.lang.Integer> keySet()
-
values
public Collection<java.lang.Integer> values()
-
-