Class GenericMap<K,​V>

  • All Implemented Interfaces:, java.util.Map<K,​V>, Appender<java.lang.StringBuilder>
    Direct Known Subclasses:

    public abstract class GenericMap<K,​V>
    extends java.lang.Object
    implements Appender<java.lang.StringBuilder>, java.util.Map<K,​V>,
    See Also:
    Serialized Form
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      protected class  GenericMap.GenericMapIterator<DEST>  
      • 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

      Constructor Description
    • Method Summary

      All Methods Instance Methods Abstract Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.StringBuilder appendTo​(java.lang.StringBuilder sb)  
      void clear()  
      protected abstract void clearInternal()  
      boolean containsValue​(java.lang.Object value)  
      java.util.Set<java.util.Map.Entry<K,​V>> entrySet()  
      boolean equals​(java.lang.Object o)  
      protected boolean equalsGenericMap​(GenericMap<?,​?> map)  
      protected boolean equalsMap​(java.util.Map<?,​?> map)  
      V get​(java.lang.Object key)  
      protected abstract V get​(java.lang.Object key, boolean noteAccess)  
      int getModCount()  
      int hashCode()  
      protected void incrementModCount()  
      protected abstract java.util.Iterator<java.util.Map.Entry<K,​V>> iterator​(boolean noteAccess)  
      java.util.Set<K> keySet()  
      void putAll​(java.util.Map<? extends K,​? extends V> map)  
      protected abstract <KE extends K,​VE extends V>
      putAllIterator​(java.util.Iterator<java.util.Map.Entry<KE,​VE>> it)  
      V remove​(java.lang.Object key)  
      protected abstract V removeInternal​(java.lang.Object key, boolean incrementModCount)  
      java.lang.String toString()  
      java.util.Collection<V> values()  
      • Methods inherited from class java.lang.Object

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

        compute, computeIfAbsent, computeIfPresent, containsKey, forEach, getOrDefault, isEmpty, merge, put, putIfAbsent, remove, replace, replace, replaceAll, size
    • Constructor Detail

      • GenericMap

        public GenericMap()
    • Method Detail

      • getModCount

        public int getModCount()
      • incrementModCount

        protected void incrementModCount()
      • clear

        public final void clear()
        Specified by:
        clear in interface java.util.Map<K,​V>
      • clearInternal

        protected abstract void clearInternal()
      • containsValue

        public boolean containsValue​(java.lang.Object value)
        Specified by:
        containsValue in interface java.util.Map<K,​V>
      • hashCode

        public int hashCode()
        Specified by:
        hashCode in interface java.util.Map<K,​V>
        hashCode in class java.lang.Object
      • equals

        public boolean equals​(java.lang.Object o)
        Specified by:
        equals in interface java.util.Map<K,​V>
        equals in class java.lang.Object
      • equalsGenericMap

        protected boolean equalsGenericMap​(GenericMap<?,​?> map)
      • equalsMap

        protected boolean equalsMap​(java.util.Map<?,​?> map)
      • get

        public final V get​(java.lang.Object key)
        Specified by:
        get in interface java.util.Map<K,​V>
      • get

        protected abstract V get​(java.lang.Object key,
                                 boolean noteAccess)
      • entrySet

        public final java.util.Set<java.util.Map.Entry<K,​V>> entrySet()
        Specified by:
        entrySet in interface java.util.Map<K,​V>
      • iterator

        protected abstract java.util.Iterator<java.util.Map.Entry<K,​V>> iterator​(boolean noteAccess)
      • keySet

        public final java.util.Set<K> keySet()
        Specified by:
        keySet in interface java.util.Map<K,​V>
      • values

        public final java.util.Collection<V> values()
        Specified by:
        values in interface java.util.Map<K,​V>
      • remove

        public final V remove​(java.lang.Object key)
        Specified by:
        remove in interface java.util.Map<K,​V>
      • removeInternal

        protected abstract V removeInternal​(java.lang.Object key,
                                            boolean incrementModCount)
      • putAll

        public final void putAll​(java.util.Map<? extends K,​? extends V> map)
        Specified by:
        putAll in interface java.util.Map<K,​V>
      • putAllIterator

        protected abstract <KE extends K,​VE extends V> void putAllIterator​(java.util.Iterator<java.util.Map.Entry<KE,​VE>> it)
      • toString

        public java.lang.String toString()
        toString in class java.lang.Object
      • appendTo

        public java.lang.StringBuilder appendTo​(java.lang.StringBuilder sb)
        Specified by:
        appendTo in interface Appender<K>