Package net.bytebuddy
Class TypeCache.StorageKey
A key used for storing a class loader cache reference.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final intThe class loader's identity hash code. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedStorageKey(ClassLoader classLoader, ReferenceQueue<? super ClassLoader> referenceQueue) Creates a new storage key. -
Method Summary
Methods inherited from class java.lang.ref.Reference
clear, clone, enqueue, get, isEnqueued, reachabilityFence, refersTo
-
Field Details
-
hashCode
private final int hashCodeThe class loader's identity hash code.
-
-
Constructor Details
-
StorageKey
protected StorageKey(@MaybeNull ClassLoader classLoader, ReferenceQueue<? super ClassLoader> referenceQueue) Creates a new storage key.- Parameters:
classLoader- The represented class loader.referenceQueue- The reference queue to notify upon a garbage collection.
-
-
Method Details