Class IdentityMap.Entry

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

    public final class IdentityMap.Entry
    extends java.lang.Object
    implements java.util.Map.Entry
    An entry of the IdentityMap.
    • Constructor Summary

      Constructors 
      Constructor Description
      Entry​(java.lang.Object key, int hash, java.lang.Object value)
      Construct an entry.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int getHash()
      Get identity hashcode of key.
      java.lang.Object getKey()
      Get key of entry.
      IdentityMap.Entry getNext()
      Get reference to next entry.
      java.lang.Object getValue()
      Get value of entry.
      void setNext​(IdentityMap.Entry next)
      Set reference to next entry.
      java.lang.Object setValue​(java.lang.Object value)
      Set value of entry.
      • 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.Entry

        equals, hashCode
    • Constructor Detail

      • Entry

        public Entry​(java.lang.Object key,
                     int hash,
                     java.lang.Object value)
        Construct an entry.
        Parameters:
        key - Key of entry.
        hash - Identity hashcode of key.
        value - Value of entry.
    • Method Detail

      • getKey

        public java.lang.Object getKey()
        Get key of entry.
        Specified by:
        getKey in interface java.util.Map.Entry
        Returns:
        Key of entry.
      • getHash

        public int getHash()
        Get identity hashcode of key.
        Returns:
        Identity hashcode of key.
      • setValue

        public java.lang.Object setValue​(java.lang.Object value)
        Set value of entry.
        Specified by:
        setValue in interface java.util.Map.Entry
        Parameters:
        value - New value of entry.
        Returns:
        Previous entry in the map.
      • getValue

        public java.lang.Object getValue()
        Get value of entry.
        Specified by:
        getValue in interface java.util.Map.Entry
        Returns:
        Value of entry.
      • setNext

        public void setNext​(IdentityMap.Entry next)
        Set reference to next entry.
        Parameters:
        next - New reference to next entry.
      • getNext

        public IdentityMap.Entry getNext()
        Get reference to next entry.
        Returns:
        Reference to next entry.