Class 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
    • Nested Class Summary

      • Nested classes/interfaces inherited from interface java.util.Map

        java.util.Map.Entry<K extends java.lang.Object,​V extends java.lang.Object>
    • Constructor Summary

      Constructors 
      Constructor Description
      ArrayMap4()  
      ArrayMap4​(int initialCapacity)  
    • 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.
      • Methods inherited from class java.lang.Object

        finalize, getClass, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface java.util.Map

        compute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAll
    • Constructor Detail

      • ArrayMap4

        public ArrayMap4()
      • ArrayMap4

        public ArrayMap4​(int initialCapacity)
    • Method Detail

      • bind

        public void bind​(Activator activator)
        bind basic implementation.
        Specified by:
        bind in interface Activatable
        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 interface java.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 interface java.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 interface java.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 interface java.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 interface java.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 interface java.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 interface java.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 interface java.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 interface java.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 interface java.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 interface java.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 interface java.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 class java.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 interface java.util.Map<K,​V>
        Overrides:
        equals in class java.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 interface java.util.Map<K,​V>
        Overrides:
        hashCode in class java.lang.Object
        See Also:
        Map, Activatable