Package net.bytebuddy

Class TypeCache.StorageKey

  • Enclosing class:
    TypeCache<T>

    protected static class TypeCache.StorageKey
    extends java.lang.ref.WeakReference<java.lang.ClassLoader>
    A key used for storing a class loader cache reference.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private int hashCode
      The class loader's identity hash code.
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      protected StorageKey​(java.lang.ClassLoader classLoader, java.lang.ref.ReferenceQueue<? super java.lang.ClassLoader> referenceQueue)
      Creates a new storage key.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean equals​(java.lang.Object other)  
      int hashCode()  
      • Methods inherited from class java.lang.ref.Reference

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

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

      • hashCode

        private final int hashCode
        The class loader's identity hash code.
    • Constructor Detail

      • StorageKey

        protected StorageKey​(java.lang.ClassLoader classLoader,
                             java.lang.ref.ReferenceQueue<? super java.lang.ClassLoader> referenceQueue)
        Creates a new storage key.
        Parameters:
        classLoader - The represented class loader.
        referenceQueue - The reference queue to notify upon a garbage collection.
    • Method Detail

      • hashCode

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

        public boolean equals​(java.lang.Object other)
        Overrides:
        equals in class java.lang.Object