public class DBObjectIDMap<V>
extends java.lang.Object
Constructor and Description |
---|
DBObjectIDMap(boolean strict)
Constructs a new map whose DBObjectID keys will optionally be compared
strictly.
|
DBObjectIDMap(boolean strict,
boolean concurrent)
Constructs a new map that is optionally concurrent (i.e.
|
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 DBObjectIDMap(boolean strict)
This Map will not be thread safe, use
DBObjectIDMap(boolean,boolean)
if you require thread safety.
DBObjectID#equals(boolean)
public DBObjectIDMap(boolean strict, boolean concurrent)
strict
- whether the keys will be compared strictlyconcurrent
- whether the map will be thread safepublic 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>