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.withIdentityFields(ElementMatcher<? super FieldDescription.InDefinedShape> identity) |
Returns a new version of this hash code method implementation that considers the matched fields by their identity.
|
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.withMultiplier(int multiplier) |
Returns a new version of this hash code method implementation that uses the given multiplier onto any given hash code before adding a
field's hash code.
|
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.
|