Package com.db4o.collections
Class ArrayMap4<K,V>
- java.lang.Object
-
- com.db4o.collections.ArrayMap4<K,V>
-
- All Implemented Interfaces:
Activatable
,java.io.Serializable
,java.lang.Cloneable
,java.util.Map<K,V>
public class ArrayMap4<K,V> extends java.lang.Object implements java.util.Map<K,V>, java.io.Serializable, java.lang.Cloneable, Activatable
Transparent activatable Map implementation. Implements Map interface using two arrays to store keys and values.
When instantiated as a result of a query, all the internal members are NOT activated at all. When internal members are required to perform an operation, the instance transparently activates all the members.- See Also:
Map
,Activatable
, Serialized Form
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
activate(ActivationPurpose purpose)
activate basic implementation.void
bind(Activator activator)
bind basic implementation.void
clear()
java.util.Map implementation but transparently activates the members as required.ArrayMap4<K,V>
clone()
java.util.Map implementation but transparently activates the members as required.boolean
containsKey(java.lang.Object key)
java.util.Map implementation but transparently activates the members as required.boolean
containsValue(java.lang.Object value)
java.util.Map implementation but transparently activates the members as required.java.util.Set<java.util.Map.Entry<K,V>>
entrySet()
java.util.Map implementation but transparently activates the members as required.boolean
equals(java.lang.Object obj)
java.util.Map implementation but transparently activates the members as required.V
get(java.lang.Object key)
java.util.Map implementation but transparently activates the members as required.int
hashCode()
java.util.Map implementation but transparently activates the members as required.boolean
isEmpty()
java.util.Map implementation but transparently activates the members as required.java.util.Set<K>
keySet()
java.util.Map implementation but transparently activates the members as required.V
put(K key, V value)
java.util.Map implementation but transparently activates the members as required.void
putAll(java.util.Map<? extends K,? extends V> t)
java.util.Map implementation but transparently activates the members as required.V
remove(java.lang.Object key)
java.util.Map implementation but transparently activates the members as required.int
size()
java.util.Map implementation but transparently activates the members as required.java.util.Collection<V>
values()
java.util.Map implementation but transparently activates the members as required.
-
-
-
Method Detail
-
activate
public void activate(ActivationPurpose purpose)
activate basic implementation.- Specified by:
activate
in interfaceActivatable
- Parameters:
purpose
- Whereever this object is accessed to read or write. SeeActivationPurpose
- See Also:
Activatable
-
bind
public void bind(Activator activator)
bind basic implementation.- Specified by:
bind
in interfaceActivatable
- Parameters:
activator
- the Activator instance to bind- See Also:
Activatable
-
clear
public void clear()
java.util.Map implementation but transparently activates the members as required.- Specified by:
clear
in interfacejava.util.Map<K,V>
- See Also:
Map
,Activatable
-
containsKey
public boolean containsKey(java.lang.Object key)
java.util.Map implementation but transparently activates the members as required.- Specified by:
containsKey
in interfacejava.util.Map<K,V>
- See Also:
Map
,Activatable
-
containsValue
public boolean containsValue(java.lang.Object value)
java.util.Map implementation but transparently activates the members as required.- Specified by:
containsValue
in interfacejava.util.Map<K,V>
- See Also:
Map
,Activatable
-
entrySet
public java.util.Set<java.util.Map.Entry<K,V>> entrySet()
java.util.Map implementation but transparently activates the members as required.- Specified by:
entrySet
in interfacejava.util.Map<K,V>
- See Also:
Map
,Activatable
-
get
public V get(java.lang.Object key)
java.util.Map implementation but transparently activates the members as required.- Specified by:
get
in interfacejava.util.Map<K,V>
- See Also:
Map
,Activatable
-
isEmpty
public boolean isEmpty()
java.util.Map implementation but transparently activates the members as required.- Specified by:
isEmpty
in interfacejava.util.Map<K,V>
- See Also:
Map
,Activatable
-
keySet
public java.util.Set<K> keySet()
java.util.Map implementation but transparently activates the members as required.- Specified by:
keySet
in interfacejava.util.Map<K,V>
- See Also:
Map
,Activatable
-
put
public V put(K key, V value)
java.util.Map implementation but transparently activates the members as required.- Specified by:
put
in interfacejava.util.Map<K,V>
- See Also:
Map
,Activatable
-
putAll
public void putAll(java.util.Map<? extends K,? extends V> t)
java.util.Map implementation but transparently activates the members as required.- Specified by:
putAll
in interfacejava.util.Map<K,V>
- See Also:
Map
,Activatable
-
remove
public V remove(java.lang.Object key)
java.util.Map implementation but transparently activates the members as required.- Specified by:
remove
in interfacejava.util.Map<K,V>
- See Also:
Map
,Activatable
-
size
public int size()
java.util.Map implementation but transparently activates the members as required.- Specified by:
size
in interfacejava.util.Map<K,V>
- See Also:
Map
,Activatable
-
values
public java.util.Collection<V> values()
java.util.Map implementation but transparently activates the members as required.- Specified by:
values
in interfacejava.util.Map<K,V>
- See Also:
Map
,Activatable
-
clone
public ArrayMap4<K,V> clone()
java.util.Map implementation but transparently activates the members as required.- Overrides:
clone
in classjava.lang.Object
- See Also:
Map
,Activatable
-
equals
public boolean equals(java.lang.Object obj)
java.util.Map implementation but transparently activates the members as required.- Specified by:
equals
in interfacejava.util.Map<K,V>
- Overrides:
equals
in classjava.lang.Object
- See Also:
Map
,Activatable
-
hashCode
public int hashCode()
java.util.Map implementation but transparently activates the members as required.- Specified by:
hashCode
in interfacejava.util.Map<K,V>
- Overrides:
hashCode
in classjava.lang.Object
- See Also:
Map
,Activatable
-
-