Package net.bytebuddy.agent.builder
Class AgentBuilder.RedefinitionStrategy.ResubmissionStrategy.Enabled.LookupKey
- java.lang.Object
-
- net.bytebuddy.agent.builder.AgentBuilder.RedefinitionStrategy.ResubmissionStrategy.Enabled.LookupKey
-
- Enclosing class:
- AgentBuilder.RedefinitionStrategy.ResubmissionStrategy.Enabled
protected static class AgentBuilder.RedefinitionStrategy.ResubmissionStrategy.Enabled.LookupKey extends java.lang.Object
A key for a class loader that can only be used for looking up a preexisting value but avoids reference management.
-
-
Field Summary
Fields Modifier and Type Field Description private java.lang.ClassLoader
classLoader
The represented class loader.private int
hashCode
The represented class loader's hash code or0
if this entry represents the bootstrap class loader.
-
Constructor Summary
Constructors Modifier Constructor Description protected
LookupKey(java.lang.ClassLoader classLoader)
Creates a new lookup key.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object other)
int
hashCode()
-
-
-
Field Detail
-
classLoader
@MaybeNull private final java.lang.ClassLoader classLoader
The represented class loader.
-
hashCode
private final int hashCode
The represented class loader's hash code or0
if this entry represents the bootstrap class loader.
-
-
Constructor Detail
-
LookupKey
protected LookupKey(@MaybeNull java.lang.ClassLoader classLoader)
Creates a new lookup key.- Parameters:
classLoader
- The represented class loader.
-
-
Method Detail
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
equals
public boolean equals(@MaybeNull java.lang.Object other)
- Overrides:
equals
in classjava.lang.Object
-
-