Class WeakIdentityHashMap.Entry

  • All Implemented Interfaces:
    java.util.Map.Entry
    Enclosing class:
    WeakIdentityHashMap

    private static class WeakIdentityHashMap.Entry
    extends java.lang.ref.WeakReference
    implements java.util.Map.Entry
    The entries in this hash table extend WeakReference, using its main ref field as the key.
    • Constructor Summary

      Constructors 
      Constructor Description
      Entry​(java.lang.Object key, java.lang.Object value, java.lang.ref.ReferenceQueue queue, int hash, WeakIdentityHashMap.Entry next)
      Create new entry.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean equals​(java.lang.Object o)  
      java.lang.Object getKey()  
      java.lang.Object getValue()  
      int hashCode()  
      java.lang.Object setValue​(java.lang.Object newValue)  
      java.lang.String toString()  
      • Methods inherited from class java.lang.ref.Reference

        clear, clone, enqueue, get, isEnqueued, reachabilityFence
      • Methods inherited from class java.lang.Object

        finalize, getClass, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • Entry

        Entry​(java.lang.Object key,
              java.lang.Object value,
              java.lang.ref.ReferenceQueue queue,
              int hash,
              WeakIdentityHashMap.Entry next)
        Create new entry.
    • Method Detail

      • getKey

        public java.lang.Object getKey()
        Specified by:
        getKey in interface java.util.Map.Entry
      • getValue

        public java.lang.Object getValue()
        Specified by:
        getValue in interface java.util.Map.Entry
      • setValue

        public java.lang.Object setValue​(java.lang.Object newValue)
        Specified by:
        setValue in interface java.util.Map.Entry
      • equals

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

        public int hashCode()
        Specified by:
        hashCode in interface java.util.Map.Entry
        Overrides:
        hashCode in class java.lang.Object
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object