Class GenericMapTest.TestGenericMap<K,​V>

  • All Implemented Interfaces:
    java.io.Serializable, java.util.Map<K,​V>, Appender<java.lang.StringBuilder>
    Enclosing class:
    GenericMapTest

    public static class GenericMapTest.TestGenericMap<K,​V>
    extends GenericMap<K,​V>
    See Also:
    Serialized Form
    • Field Detail

      • counts

        protected final java.util.Map<java.lang.String,​java.lang.Integer> counts
      • proxyMap

        protected final java.util.Map<K,​V> proxyMap
    • Constructor Detail

      • TestGenericMap

        protected TestGenericMap()
      • TestGenericMap

        protected TestGenericMap​(java.util.Map<K,​V> srcMap)
    • Method Detail

      • getCounts

        public java.util.List<java.lang.Integer> getCounts()
      • containsKey

        public boolean containsKey​(java.lang.Object key)
      • get

        protected V get​(java.lang.Object key,
                        boolean noteAccess)
        Specified by:
        get in class GenericMap<K,​V>
      • isEmpty

        public boolean isEmpty()
      • iterator

        protected java.util.Iterator<java.util.Map.Entry<K,​V>> iterator​(boolean noteAccess)
        Specified by:
        iterator in class GenericMap<K,​V>
      • put

        public V put​(K key,
                     V value)
      • putAllIterator

        protected <KE extends K,​VE extends V> void putAllIterator​(java.util.Iterator<java.util.Map.Entry<KE,​VE>> it)
        Specified by:
        putAllIterator in class GenericMap<K,​V>
      • removeInternal

        protected V removeInternal​(java.lang.Object key,
                                   boolean incrementModCount)
        Specified by:
        removeInternal in class GenericMap<K,​V>
      • size

        public int size()