Package net.bytebuddy.implementation
Interface HashCodeMethod.OffsetProvider
-
- All Known Implementing Classes:
HashCodeMethod.OffsetProvider.ForFixedValue
,HashCodeMethod.OffsetProvider.ForSuperMethodCall
- Enclosing class:
- HashCodeMethod
protected static interface HashCodeMethod.OffsetProvider
An offset provider is responsible for supplying the initial hash code.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static class
HashCodeMethod.OffsetProvider.ForFixedValue
An offset provider that supplies a fixed value.static class
HashCodeMethod.OffsetProvider.ForSuperMethodCall
An offset provider that invokes the super class'sObject.hashCode()
implementation.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description StackManipulation
resolve(TypeDescription instrumentedType)
Resolves this offset provider for a given instrumented type.
-
-
-
Method Detail
-
resolve
StackManipulation resolve(TypeDescription instrumentedType)
Resolves this offset provider for a given instrumented type.- Parameters:
instrumentedType
- The instrumented type.- Returns:
- A stack manipulation that loads the initial hash code onto the operand stack.
-
-