java.lang.Object
org.hsqldb.map.BaseHashMap
org.hsqldb.lib.HashMap<K,V>
- All Implemented Interfaces:
Map<K,V>
- Direct Known Subclasses:
OrderedHashMap
This class does not store null keys.
- Since:
- 1.7.2
- Author:
- Fred Toussi (fredt@users dot sourceforge.net)
-
Nested Class Summary
-
Field Summary
Fields inherited from class org.hsqldb.map.BaseHashMap
ACCESS_MAX, emptyObjectArray -
Constructor Summary
ConstructorsConstructorDescriptionHashMap()HashMap(int initialCapacity) HashMap(int initialCapacity, ObjectComparator<K> comparator) -
Method Summary
Modifier and TypeMethodDescriptionbooleancontainsKey(Object key) booleancontainsValue(Object value) entrySet()keySet()<T> T[]keysToArray(T[] array) voidbooleanRemoves the spacific key, value pair.values()<T> T[]valuesToArray(T[] array) Methods inherited from class org.hsqldb.map.BaseHashMap
clear, clone, isEmpty, size
-
Constructor Details
-
HashMap
public HashMap() -
HashMap
- Throws:
IllegalArgumentException
-
HashMap
- Throws:
IllegalArgumentException
-
-
Method Details
-
containsKey
- Specified by:
containsKeyin interfaceMap<K,V>
-
containsValue
- Specified by:
containsValuein interfaceMap<K,V>
-
get
-
put
-
remove
-
remove
Removes the spacific key, value pair.- Parameters:
key- the keyvalue- the value- Returns:
- the value associated with the key, or null if none
-
putAll
-
keysToArray
public <T> T[] keysToArray(T[] array) -
valuesToArray
public <T> T[] valuesToArray(T[] array) -
keySet
-
values
-
entrySet
-