Package net.bytebuddy.implementation
Interface HashCodeMethod.NullValueGuard
-
- All Known Implementing Classes:
HashCodeMethod.NullValueGuard.NoOp,HashCodeMethod.NullValueGuard.UsingJump
- Enclosing class:
- HashCodeMethod
protected static interface HashCodeMethod.NullValueGuardA guard againstnullvalues for fields with reference types.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classHashCodeMethod.NullValueGuard.NoOpA non-operational null value guard.static classHashCodeMethod.NullValueGuard.UsingJumpA null value guard that expects a reference type and that uses a jump if a field value isnull.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description StackManipulationafter()Returns a stack manipulation to apply after computing a hash value.StackManipulationbefore()Returns a stack manipulation to apply before computing a hash value.intgetRequiredVariablePadding()Returns the required padding for the local variable array to apply this guard.
-
-
-
Method Detail
-
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.
-
-