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