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 againstnull
values for fields with reference types.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static class
HashCodeMethod.NullValueGuard.NoOp
A non-operational null value guard.static class
HashCodeMethod.NullValueGuard.UsingJump
A 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 StackManipulation
after()
Returns a stack manipulation to apply after computing a hash value.StackManipulation
before()
Returns a stack manipulation to apply before computing a hash value.int
getRequiredVariablePadding()
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.
-
-