com.db4o.collections
Class ActivatableHashMap<K,V>
java.lang.Object
java.util.AbstractMap<K,V>
java.util.HashMap<K,V>
com.db4o.collections.ActivatableHashMap<K,V>
- All Implemented Interfaces:
- ActivatableMap<K,V>, Activatable, java.io.Serializable, java.lang.Cloneable, java.util.Map<K,V>
public class ActivatableHashMap<K,V>
- extends java.util.HashMap<K,V>
- implements ActivatableMap<K,V>
extends HashMap with Transparent Activation and
Transparent Persistence support
- Since:
- 7.9
- See Also:
- Serialized Form
Nested classes/interfaces inherited from class java.util.AbstractMap |
java.util.AbstractMap.SimpleEntry<K,V>, java.util.AbstractMap.SimpleImmutableEntry<K,V> |
Nested classes/interfaces inherited from interface java.util.Map |
java.util.Map.Entry<K,V> |
Methods inherited from class java.util.AbstractMap |
toString |
Methods inherited from class java.lang.Object |
getClass, notify, notifyAll, wait, wait, wait |
ActivatableHashMap
public ActivatableHashMap()
ActivatableHashMap
public ActivatableHashMap(int initialCapacity)
ActivatableHashMap
public ActivatableHashMap(int initialCapacity,
float loadFactor)
ActivatableHashMap
public ActivatableHashMap(java.util.Map<? extends K,? extends V> map)
activate
public void activate(ActivationPurpose purpose)
- Description copied from interface:
Activatable
- should be called by every reading field access of an object.
The recommended implementation of this method is to call
Activator.activate(ActivationPurpose)
on the Activator
that was previously passed to Activatable.bind(Activator)
.
- Specified by:
activate
in interface Activatable
- Parameters:
purpose
- TODO
bind
public void bind(Activator activator)
- Description copied from interface:
Activatable
- called by db4o upon instantiation.
The recommended implementation of this method is to store the passed
Activator
in a transient field of the object.
- Specified by:
bind
in interface Activatable
- Parameters:
activator
- the Activator
clear
public void clear()
- Specified by:
clear
in interface java.util.Map<K,V>
- Overrides:
clear
in class java.util.HashMap<K,V>
clone
public java.lang.Object clone()
- Overrides:
clone
in class java.util.HashMap<K,V>
containsKey
public boolean containsKey(java.lang.Object key)
- Specified by:
containsKey
in interface java.util.Map<K,V>
- Overrides:
containsKey
in class java.util.HashMap<K,V>
containsValue
public boolean containsValue(java.lang.Object value)
- Specified by:
containsValue
in interface java.util.Map<K,V>
- Overrides:
containsValue
in class java.util.HashMap<K,V>
entrySet
public java.util.Set<java.util.Map.Entry<K,V>> entrySet()
- Specified by:
entrySet
in interface java.util.Map<K,V>
- Overrides:
entrySet
in class java.util.HashMap<K,V>
get
public V get(java.lang.Object key)
- Specified by:
get
in interface java.util.Map<K,V>
- Overrides:
get
in class java.util.HashMap<K,V>
isEmpty
public boolean isEmpty()
- Specified by:
isEmpty
in interface java.util.Map<K,V>
- Overrides:
isEmpty
in class java.util.HashMap<K,V>
keySet
public java.util.Set<K> keySet()
- Specified by:
keySet
in interface java.util.Map<K,V>
- Overrides:
keySet
in class java.util.HashMap<K,V>
put
public V put(K key,
V value)
- Specified by:
put
in interface java.util.Map<K,V>
- Overrides:
put
in class java.util.HashMap<K,V>
putAll
public void putAll(java.util.Map<? extends K,? extends V> m)
- Specified by:
putAll
in interface java.util.Map<K,V>
- Overrides:
putAll
in class java.util.HashMap<K,V>
remove
public V remove(java.lang.Object key)
- Specified by:
remove
in interface java.util.Map<K,V>
- Overrides:
remove
in class java.util.HashMap<K,V>
size
public int size()
- Specified by:
size
in interface java.util.Map<K,V>
- Overrides:
size
in class java.util.HashMap<K,V>
values
public java.util.Collection<V> values()
- Specified by:
values
in interface java.util.Map<K,V>
- Overrides:
values
in class java.util.HashMap<K,V>
equals
public boolean equals(java.lang.Object o)
- Specified by:
equals
in interface java.util.Map<K,V>
- Overrides:
equals
in class java.util.AbstractMap<K,V>
hashCode
public int hashCode()
- Specified by:
hashCode
in interface java.util.Map<K,V>
- Overrides:
hashCode
in class java.util.AbstractMap<K,V>
Copyright 2009 Versant Corporation. All rights reserved.