Class WeakIdentityHashMap<K,​V>

  • All Implemented Interfaces:
    java.util.Map<K,​V>

    @Deprecated
    public class WeakIdentityHashMap<K,​V>
    extends java.lang.Object
    implements java.util.Map<K,​V>
    Deprecated.
    Stattdessen sollte new MapMaker().weakKeys().makeMap() verwendet werden, die optimierter und threadsafe ist.
    WeakHashMap, die anhand von Objekt-Identität vergleicht. Nicht Threadsafe.
    • 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>
    • Method Summary

      All Methods Instance Methods Concrete Methods Deprecated Methods 
      Modifier and Type Method Description
      void clear()
      Deprecated.
       
      boolean containsKey​(java.lang.Object key)
      Deprecated.
       
      boolean containsValue​(java.lang.Object value)
      Deprecated.
       
      java.util.Set<java.util.Map.Entry<K,​V>> entrySet()
      Deprecated.
       
      V get​(java.lang.Object key)
      Deprecated.
       
      boolean isEmpty()
      Deprecated.
       
      java.util.Set<K> keySet()
      Deprecated.
       
      V put​(K key, V value)
      Deprecated.
       
      void putAll​(java.util.Map<? extends K,​? extends V> m)
      Deprecated.
       
      V remove​(java.lang.Object key)
      Deprecated.
       
      int size()
      Deprecated.
       
      java.util.Collection<V> values()
      Deprecated.
       
      • Methods inherited from class java.lang.Object

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

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

      • WeakIdentityHashMap

        public WeakIdentityHashMap()
        Deprecated.
    • Method Detail

      • size

        public final int size()
        Deprecated.
        Specified by:
        size in interface java.util.Map<K,​V>
      • isEmpty

        public final boolean isEmpty()
        Deprecated.
        Specified by:
        isEmpty in interface java.util.Map<K,​V>
      • containsKey

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

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

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

        public final V put​(K key,
                           V value)
        Deprecated.
        Specified by:
        put in interface java.util.Map<K,​V>
      • remove

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

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

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

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

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

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