Package | Description |
---|---|
net.bytebuddy.build |
A package for types that allow for applying Byte Buddy transformation during a build process.
|
net.bytebuddy.implementation |
The implementation package contains any logic for intercepting method calls.
|
Modifier and Type | Method and Description |
---|---|
protected abstract HashCodeMethod |
HashCodeAndEqualsPlugin.Enhance.InvokeSuper.hashCodeMethod(TypeDescription instrumentedType,
boolean typeHash,
boolean subclassEquality)
Resolves the hash code method to use.
|
Modifier and Type | Method and Description |
---|---|
static HashCodeMethod |
HashCodeMethod.usingDefaultOffset()
Creates a hash code method implementation that bases the hash code on a fixed value.
|
static HashCodeMethod |
HashCodeMethod.usingOffset(int value)
Creates a hash code method implementation that bases the hash code on a fixed value.
|
static HashCodeMethod |
HashCodeMethod.usingSuperClassOffset()
Creates a hash code method implementation that bases the hash code on the instrumented type's super class's hash code value.
|
static HashCodeMethod |
HashCodeMethod.usingTypeHashOffset(boolean dynamic)
Creates a hash code method implementation that bases the hash code on the instrumented type's class constant's hash code..
|
HashCodeMethod |
HashCodeMethod.withIgnoredFields(ElementMatcher<? super FieldDescription.InDefinedShape> ignored)
Returns a new version of this hash code method implementation that ignores the specified fields additionally to any
previously specified fields.
|
HashCodeMethod |
HashCodeMethod.withNonNullableFields(ElementMatcher<? super FieldDescription.InDefinedShape> nonNullable)
Returns a new version of this hash code method implementation that does not apply a
null value check for the specified fields
if they have a reference type additionally to any previously specified fields. |
Copyright © 2014–2023. All rights reserved.