Class IdWeakHashMap

  • All Implemented Interfaces:
    java.util.Map

    public final class IdWeakHashMap
    extends java.util.AbstractMap
    implements java.util.Map
    IdWeakHashMap is NOT null-accepting!
    • 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>
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void clear()  
      boolean containsKey​(java.lang.Object o)  
      boolean containsValue​(java.lang.Object o)  
      protected java.util.Map.Entry createIdEntry​(java.lang.Object key, java.lang.Object val)  
      protected java.util.Map.Entry createIdEntry​(java.util.Map.Entry entry)  
      protected com.mchange.v1.identicator.IdHashKey createIdKey​(java.lang.Object o)  
      java.util.Set entrySet()  
      boolean equals​(java.lang.Object o)  
      java.lang.Object get​(java.lang.Object o)  
      int hashCode()  
      protected java.util.Set internalEntrySet()  
      boolean isEmpty()  
      java.util.Set keySet()  
      java.lang.Object put​(java.lang.Object k, java.lang.Object v)  
      void putAll​(java.util.Map m)  
      java.lang.Object remove​(java.lang.Object o)  
      protected java.lang.Object removeIdHashKey​(com.mchange.v1.identicator.IdHashKey idhk)  
      int size()  
      java.util.Collection values()  
      • Methods inherited from class java.util.AbstractMap

        clone, 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
    • Constructor Detail

      • IdWeakHashMap

        public IdWeakHashMap​(Identicator id)
    • Method Detail

      • size

        public int size()
        Specified by:
        size in interface java.util.Map
        Overrides:
        size in class java.util.AbstractMap
      • isEmpty

        public boolean isEmpty()
        Specified by:
        isEmpty in interface java.util.Map
        Overrides:
        isEmpty in class java.util.AbstractMap
      • containsKey

        public boolean containsKey​(java.lang.Object o)
        Specified by:
        containsKey in interface java.util.Map
      • containsValue

        public boolean containsValue​(java.lang.Object o)
        Specified by:
        containsValue in interface java.util.Map
        Overrides:
        containsValue in class java.util.AbstractMap
      • get

        public java.lang.Object get​(java.lang.Object o)
        Specified by:
        get in interface java.util.Map
      • put

        public java.lang.Object put​(java.lang.Object k,
                                    java.lang.Object v)
        Specified by:
        put in interface java.util.Map
      • remove

        public java.lang.Object remove​(java.lang.Object o)
        Specified by:
        remove in interface java.util.Map
      • putAll

        public void putAll​(java.util.Map m)
        Specified by:
        putAll in interface java.util.Map
        Overrides:
        putAll in class java.util.AbstractMap
      • clear

        public void clear()
        Specified by:
        clear in interface java.util.Map
        Overrides:
        clear in class java.util.AbstractMap
      • keySet

        public java.util.Set keySet()
        Specified by:
        keySet in interface java.util.Map
        Overrides:
        keySet in class java.util.AbstractMap
      • values

        public java.util.Collection values()
        Specified by:
        values in interface java.util.Map
        Overrides:
        values in class java.util.AbstractMap
      • entrySet

        public java.util.Set entrySet()
        Specified by:
        entrySet in interface java.util.Map
      • equals

        public boolean equals​(java.lang.Object o)
        Specified by:
        equals in interface java.util.Map
        Overrides:
        equals in class java.util.AbstractMap
      • hashCode

        public int hashCode()
        Specified by:
        hashCode in interface java.util.Map
        Overrides:
        hashCode in class java.util.AbstractMap
      • createIdKey

        protected com.mchange.v1.identicator.IdHashKey createIdKey​(java.lang.Object o)
      • removeIdHashKey

        protected java.lang.Object removeIdHashKey​(com.mchange.v1.identicator.IdHashKey idhk)
      • internalEntrySet

        protected final java.util.Set internalEntrySet()
      • createIdEntry

        protected final java.util.Map.Entry createIdEntry​(java.lang.Object key,
                                                          java.lang.Object val)
      • createIdEntry

        protected final java.util.Map.Entry createIdEntry​(java.util.Map.Entry entry)