Package net.bytebuddy
Class TypeCache.StorageKey
A key used for storing a class loader cache reference.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final int
The class loader's identity hash code. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
StorageKey
(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 ornull
for the bootstrap loader.referenceQueue
- The reference queue to notify upon a garbage collection.
-
-
Method Details