- java.lang.Object
-
- org.hsqldb.map.BaseHashMap
-
- org.hsqldb.lib.LongKeyLongValueHashMap
-
-
Constructor Summary
Constructors Constructor Description LongKeyLongValueHashMap()
LongKeyLongValueHashMap(boolean minimize)
LongKeyLongValueHashMap(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(long value)
boolean
containsValue(java.lang.Object value)
Set<Map.Entry<java.lang.Long,java.lang.Long>>
entrySet()
long
get(long key)
long
get(long key, long defaultValue)
boolean
get(long key, long[] value)
java.lang.Long
get(java.lang.Long key)
Set<java.lang.Long>
keySet()
long[]
keysToArray(long[] array)
boolean
put(long key, long value)
java.lang.Long
put(java.lang.Long key, java.lang.Long value)
void
putAll(LongKeyLongValueHashMap other)
boolean
remove(long key)
java.lang.Long
remove(java.lang.Object key)
Collection<java.lang.Long>
values()
long[]
valuesToArray(long[] array)
-
-
-
Constructor Detail
-
LongKeyLongValueHashMap
public LongKeyLongValueHashMap()
-
LongKeyLongValueHashMap
public LongKeyLongValueHashMap(int initialCapacity) throws java.lang.IllegalArgumentException
- Throws:
java.lang.IllegalArgumentException
-
LongKeyLongValueHashMap
public LongKeyLongValueHashMap(boolean minimize)
-
-
Method Detail
-
containsKey
public boolean containsKey(java.lang.Object key)
- Specified by:
containsKey
in interfaceMap<java.lang.Long,java.lang.Long>
-
containsKey
public boolean containsKey(long key)
-
containsValue
public boolean containsValue(java.lang.Object value)
- Specified by:
containsValue
in interfaceMap<java.lang.Long,java.lang.Long>
-
containsValue
public boolean containsValue(long value)
-
get
public java.lang.Long get(java.lang.Long key)
-
get
public long get(long key) throws java.util.NoSuchElementException
- Throws:
java.util.NoSuchElementException
-
get
public long get(long key, long defaultValue)
-
get
public boolean get(long key, long[] value)
-
put
public java.lang.Long put(java.lang.Long key, java.lang.Long value)
-
put
public boolean put(long key, long value)
-
remove
public java.lang.Long remove(java.lang.Object key)
-
remove
public boolean remove(long key)
-
putAll
public void putAll(LongKeyLongValueHashMap other)
-
keysToArray
public long[] keysToArray(long[] array)
-
valuesToArray
public long[] valuesToArray(long[] array)
-
keySet
public Set<java.lang.Long> keySet()
-
values
public Collection<java.lang.Long> values()
-
-