public class DBObjectMap<K extends DBObject,V>
extends java.lang.Object
This Map implementation is not synchronized, use
Collections.synchronizedMap if you require thread safety.
| Constructor and Description |
|---|
DBObjectMap()
Constructs a new map whose DBObject keys will be compared by name and type
to test for uniqueness.
|
| Modifier and Type | Method and Description |
|---|---|
void |
clear() |
boolean |
containsKey(java.lang.Object key) |
boolean |
containsValue(java.lang.Object value) |
java.util.Set<java.util.Map.Entry<K,V>> |
entrySet() |
V |
get(java.lang.Object key) |
boolean |
isEmpty() |
java.util.Set<K> |
keySet() |
V |
put(K key,
V value) |
void |
putAll(java.util.Map<? extends K,? extends V> m) |
V |
remove(java.lang.Object key) |
int |
size() |
java.util.Collection<V> |
values() |
public DBObjectMap()
public java.util.Set<java.util.Map.Entry<K,V>> entrySet()
entrySet in interface java.util.Map<K,V>public V put(K key,
V value)
put in interface java.util.Map<K,V>public java.util.Collection<V> values()
values in interface java.util.Map<K,V>public int size()
size in interface java.util.Map<K,V>public void putAll(java.util.Map<? extends K,? extends V> m)
putAll in interface java.util.Map<K,V>public V remove(java.lang.Object key)
remove in interface java.util.Map<K,V>public java.util.Set<K> keySet()
keySet in interface java.util.Map<K,V>public boolean isEmpty()
isEmpty in interface java.util.Map<K,V>public V get(java.lang.Object key)
get in interface java.util.Map<K,V>public boolean containsValue(java.lang.Object value)
containsValue in interface java.util.Map<K,V>public boolean containsKey(java.lang.Object key)
containsKey in interface java.util.Map<K,V>public void clear()
clear in interface java.util.Map<K,V>