Package com.db4o.collections
Class ActivatableHashtable<K,V>
- java.lang.Object
-
- java.util.Dictionary<K,V>
-
- java.util.Hashtable<K,V>
-
- com.db4o.collections.ActivatableHashtable<K,V>
-
- All Implemented Interfaces:
ActivatableMap<K,V>,Activatable,java.io.Serializable,java.lang.Cloneable,java.util.Map<K,V>
public class ActivatableHashtable<K,V> extends java.util.Hashtable<K,V> implements ActivatableMap<K,V>
extends Hashtable with Transparent Activation and Transparent Persistence support- Since:
- 7.9
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ActivatableHashtable()ActivatableHashtable(int initialCapacity)ActivatableHashtable(int initialCapacity, float loadFactor)ActivatableHashtable(java.util.Map<? extends K,? extends V> map)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidactivate(ActivationPurpose purpose)Should be called by every reading field access of an object.voidbind(Activator activator)Called by db4o after the object instantiation.voidclear()java.lang.Objectclone()booleancontains(java.lang.Object value)booleancontainsKey(java.lang.Object key)booleancontainsValue(java.lang.Object value)java.util.Enumeration<V>elements()java.util.Set<java.util.Map.Entry<K,V>>entrySet()booleanequals(java.lang.Object o)Vget(java.lang.Object key)inthashCode()booleanisEmpty()java.util.Set<K>keySet()Vput(K key, V value)voidputAll(java.util.Map<? extends K,? extends V> m)Vremove(java.lang.Object key)intsize()java.util.Collection<V>values()-
Methods inherited from class java.util.Hashtable
compute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, keys, merge, putIfAbsent, rehash, remove, replace, replace, replaceAll, toString
-
-
-
-
Method Detail
-
activate
public void activate(ActivationPurpose purpose)
Description copied from interface:ActivatableShould be called by every reading field access of an object.
The recommended implementation of this method is to callActivator.activate(ActivationPurpose)on theActivatorthat was previously passed toActivatable.bind(Activator).- Specified by:
activatein interfaceActivatable- Parameters:
purpose- Whereever this object is accessed to read or write. SeeActivationPurpose
-
bind
public void bind(Activator activator)
Description copied from interface:ActivatableCalled by db4o after the object instantiation. This method is called to bind the object to the current activator
The recommended implementation of this method is to store the passedActivatorin a transient field of the object.- Specified by:
bindin interfaceActivatable- Parameters:
activator- the Activator instance to bind
-
clear
public void clear()
-
contains
public boolean contains(java.lang.Object value)
-
containsKey
public boolean containsKey(java.lang.Object key)
-
containsValue
public boolean containsValue(java.lang.Object value)
-
elements
public java.util.Enumeration<V> elements()
-
get
public V get(java.lang.Object key)
-
isEmpty
public boolean isEmpty()
-
keySet
public java.util.Set<K> keySet()
-
remove
public V remove(java.lang.Object key)
-
size
public int size()
-
values
public java.util.Collection<V> values()
-
equals
public boolean equals(java.lang.Object o)
-
-