Class Maps.ViewCachingAbstractMap<K,​V>

    • Nested Class Summary

      • Nested classes/interfaces inherited from class java.util.AbstractMap

        java.util.AbstractMap.SimpleEntry<K extends java.lang.Object,​V extends java.lang.Object>, java.util.AbstractMap.SimpleImmutableEntry<K extends java.lang.Object,​V extends java.lang.Object>
      • Nested classes/interfaces inherited from interface java.util.Map

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

      Fields 
      Modifier and Type Field Description
      private java.util.Set<java.util.Map.Entry<K,​V>> entrySet  
      private java.util.Set<K> keySet  
      private java.util.Collection<V> values  
    • Method Summary

      All Methods Instance Methods Abstract Methods Concrete Methods 
      Modifier and Type Method Description
      (package private) abstract java.util.Set<java.util.Map.Entry<K,​V>> createEntrySet()
      Creates the entry set to be returned by entrySet().
      (package private) java.util.Set<K> createKeySet()  
      (package private) java.util.Collection<V> createValues()  
      java.util.Set<java.util.Map.Entry<K,​V>> entrySet()  
      java.util.Set<K> keySet()  
      java.util.Collection<V> values()  
      • Methods inherited from class java.util.AbstractMap

        clear, clone, containsKey, containsValue, equals, get, hashCode, isEmpty, put, putAll, remove, size, toString
      • Methods inherited from class java.lang.Object

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

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

      • entrySet

        private transient java.util.Set<java.util.Map.Entry<K,​V>> entrySet
      • keySet

        private transient java.util.Set<K> keySet
      • values

        private transient java.util.Collection<V> values
    • Constructor Detail

      • ViewCachingAbstractMap

        ViewCachingAbstractMap()
    • Method Detail

      • createEntrySet

        abstract java.util.Set<java.util.Map.Entry<K,​V>> createEntrySet()
        Creates the entry set to be returned by entrySet(). This method is invoked at most once on a given map, at the time when entrySet is first called.
      • entrySet

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

        public java.util.Set<K> keySet()
        Specified by:
        keySet in interface java.util.Map<K,​V>
        Overrides:
        keySet in class java.util.AbstractMap<K,​V>
      • createKeySet

        java.util.Set<K> createKeySet()
      • values

        public java.util.Collection<V> values()
        Specified by:
        values in interface java.util.Map<K,​V>
        Overrides:
        values in class java.util.AbstractMap<K,​V>
      • createValues

        java.util.Collection<V> createValues()