Class AsciiStringInterner.StringReference

  • Enclosing class:
    AsciiStringInterner

    private final class AsciiStringInterner.StringReference
    extends java.lang.ref.SoftReference<java.lang.String>
    Custom SoftReference implementation which maintains a reference to the key in the cache, which allows aggressive cleaning when garbage collector collects the String instance.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      (package private) void dispose()  
      • Methods inherited from class java.lang.ref.SoftReference

        get
      • Methods inherited from class java.lang.ref.Reference

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

        equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait