Package net.bytebuddy.implementation
Interface HashCodeMethod.NullValueGuard
- All Known Implementing Classes:
HashCodeMethod.NullValueGuard.NoOp
,HashCodeMethod.NullValueGuard.UsingJump
- Enclosing class:
- HashCodeMethod
protected static interface HashCodeMethod.NullValueGuard
A guard against
null
values for fields with reference types.-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic enum
A non-operational null value guard.static class
A null value guard that expects a reference type and that uses a jump if a field value isnull
. -
Method Summary
-
Method Details
-
before
StackManipulation before()Returns a stack manipulation to apply before computing a hash value.- Returns:
- A stack manipulation to apply before computing a hash value.
-
after
StackManipulation after()Returns a stack manipulation to apply after computing a hash value.- Returns:
- A stack manipulation to apply after computing a hash value.
-
getRequiredVariablePadding
int getRequiredVariablePadding()Returns the required padding for the local variable array to apply this guard.- Returns:
- The required padding for the local variable array to apply this guard.
-