Class ReferenceMap.Entry

  • All Implemented Interfaces:
    java.util.Map.Entry, KeyValue
    Enclosing class:
    ReferenceMap

    private class ReferenceMap.Entry
    extends java.lang.Object
    implements java.util.Map.Entry, KeyValue
    • Field Summary

      Fields 
      Modifier and Type Field Description
      (package private) int hash  
      (package private) java.lang.Object key  
      (package private) ReferenceMap.Entry next  
      (package private) java.lang.Object value  
    • Constructor Summary

      Constructors 
      Constructor Description
      Entry​(java.lang.Object key, int hash, java.lang.Object value, ReferenceMap.Entry next)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean equals​(java.lang.Object o)  
      java.lang.Object getKey()
      Gets the key from the pair.
      java.lang.Object getValue()
      Gets the value from the pair.
      int hashCode()  
      (package private) boolean purge​(java.lang.ref.Reference ref)  
      java.lang.Object setValue​(java.lang.Object object)  
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

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

      • Entry

        public Entry​(java.lang.Object key,
                     int hash,
                     java.lang.Object value,
                     ReferenceMap.Entry next)
    • Method Detail

      • getKey

        public java.lang.Object getKey()
        Description copied from interface: KeyValue
        Gets the key from the pair.
        Specified by:
        getKey in interface KeyValue
        Specified by:
        getKey in interface java.util.Map.Entry
        Returns:
        the key
      • getValue

        public java.lang.Object getValue()
        Description copied from interface: KeyValue
        Gets the value from the pair.
        Specified by:
        getValue in interface KeyValue
        Specified by:
        getValue in interface java.util.Map.Entry
        Returns:
        the value
      • setValue

        public java.lang.Object setValue​(java.lang.Object object)
        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
      • purge

        boolean purge​(java.lang.ref.Reference ref)