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.
  • Method Details

    • before

      Returns a stack manipulation to apply before computing a hash value.
      Returns:
      A stack manipulation to apply before computing a hash value.
    • 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.