Package net.bytebuddy.implementation
Interface HashCodeMethod.OffsetProvider
- All Known Implementing Classes:
HashCodeMethod.OffsetProvider.ForDynamicTypeHash,HashCodeMethod.OffsetProvider.ForFixedValue,HashCodeMethod.OffsetProvider.ForStaticTypeHash,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 ClassesModifier and TypeInterfaceDescriptionstatic enumAn offset provider that uses the instance's class's hash code.static classAn offset provider that supplies a fixed value.static enumAn offset provider that uses the instrumented type's class constant's hash code.static enumAn offset provider that invokes the super class'sObject.hashCode()implementation. -
Method Summary
Modifier and TypeMethodDescriptionresolve(TypeDescription instrumentedType) Resolves this offset provider for a given instrumented type.
-
Method Details
-
resolve
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.
-