Class References.LookupKeyReference<E>

    • Field Summary

      Fields 
      Modifier and Type Field Description
      private E e  
      private int hashCode  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean equals​(java.lang.Object object)  
      E get()
      Returns this reference object's referent.
      java.lang.Object getKeyReference()
      Returns the key that is associated to the cache entry holding this reference.
      int hashCode()  
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • hashCode

        private final int hashCode
      • e

        private final E e
    • Constructor Detail

      • LookupKeyReference

        public LookupKeyReference​(@Nonnull
                                  E e)
    • Method Detail

      • get

        public E get()
        Description copied from interface: References.InternalReference
        Returns this reference object's referent. If this reference object has been cleared, either by the program or by the garbage collector, then this method returns null.
        Specified by:
        get in interface References.InternalReference<E>
        Returns:
        The object to which this reference refers, or null if this reference object has been cleared
      • equals

        public boolean equals​(java.lang.Object object)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object