Class Interner.Entry<E>

  • Enclosing class:
    Interner<E>

    protected static class Interner.Entry<E>
    extends java.lang.ref.WeakReference<E>
    A weak reference holder that caches the hash code of the referent and is chained in the Interner.entries to handle collisions.
    Author:
    Ed Merks
    • Constructor Summary

      Constructors 
      Constructor Description
      Entry​(E object, int hashCode, java.lang.ref.ReferenceQueue<? super E> queue)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      Interner.Entry<E> getNextEntry()  
      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

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

      • Entry

        public Entry​(E object,
                     int hashCode,
                     java.lang.ref.ReferenceQueue<? super E> queue)
    • Method Detail

      • toString

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