- java.lang.Object
-
- org.hsqldb.map.BaseHashMap
-
- org.hsqldb.lib.LongKeyIntValueHashMap
-
-
Constructor Summary
Constructors Constructor Description LongKeyIntValueHashMap()
LongKeyIntValueHashMap(boolean minimize)
LongKeyIntValueHashMap(int initialCapacity)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
containsKey(long key)
boolean
containsKey(java.lang.Object key)
boolean
containsValue(int value)
boolean
containsValue(java.lang.Object value)
Set<Map.Entry<java.lang.Long,java.lang.Integer>>
entrySet()
int
get(long key)
int
get(long key, int defaultValue)
boolean
get(long key, int[] value)
java.lang.Integer
get(java.lang.Long key)
int
getLookup(long key)
Set<java.lang.Long>
keySet()
long[]
keysToArray(long[] array)
boolean
put(long key, int value)
java.lang.Integer
put(java.lang.Long key, java.lang.Integer value)
void
putAll(LongKeyIntValueHashMap other)
boolean
remove(long key)
java.lang.Integer
remove(java.lang.Object key)
Collection<java.lang.Integer>
values()
int[]
valuesToArray(int[] array)
-
-
-
Constructor Detail
-
LongKeyIntValueHashMap
public LongKeyIntValueHashMap()
-
LongKeyIntValueHashMap
public LongKeyIntValueHashMap(boolean minimize)
-
LongKeyIntValueHashMap
public LongKeyIntValueHashMap(int initialCapacity) throws java.lang.IllegalArgumentException
- Throws:
java.lang.IllegalArgumentException
-
-
Method Detail
-
containsKey
public boolean containsKey(java.lang.Object key)
- Specified by:
containsKey
in interfaceMap<java.lang.Long,java.lang.Integer>
-
containsKey
public boolean containsKey(long key)
-
containsValue
public boolean containsValue(java.lang.Object value)
- Specified by:
containsValue
in interfaceMap<java.lang.Long,java.lang.Integer>
-
containsValue
public boolean containsValue(int value)
-
get
public java.lang.Integer get(java.lang.Long key)
-
get
public int get(long key) throws java.util.NoSuchElementException
- Throws:
java.util.NoSuchElementException
-
get
public int get(long key, int defaultValue)
-
get
public boolean get(long key, int[] value)
-
getLookup
public int getLookup(long key)
-
put
public java.lang.Integer put(java.lang.Long key, java.lang.Integer value)
-
put
public boolean put(long key, int value)
-
remove
public java.lang.Integer remove(java.lang.Object key)
-
remove
public boolean remove(long key)
-
putAll
public void putAll(LongKeyIntValueHashMap other)
-
keysToArray
public long[] keysToArray(long[] array)
-
valuesToArray
public int[] valuesToArray(int[] array)
-
keySet
public Set<java.lang.Long> keySet()
-
values
public Collection<java.lang.Integer> values()
-
-