Enum Class HashCodeMethod.OffsetProvider.ForDynamicTypeHash

java.lang.Object
java.lang.Enum<HashCodeMethod.OffsetProvider.ForDynamicTypeHash>
net.bytebuddy.implementation.HashCodeMethod.OffsetProvider.ForDynamicTypeHash
All Implemented Interfaces:
Serializable, Comparable<HashCodeMethod.OffsetProvider.ForDynamicTypeHash>, Constable, HashCodeMethod.OffsetProvider
Enclosing interface:
HashCodeMethod.OffsetProvider

public static enum HashCodeMethod.OffsetProvider.ForDynamicTypeHash extends Enum<HashCodeMethod.OffsetProvider.ForDynamicTypeHash> implements HashCodeMethod.OffsetProvider
An offset provider that uses the instance's class's hash code.
  • Enum Constant Details

  • Constructor Details

    • ForDynamicTypeHash

      private ForDynamicTypeHash()
  • Method Details

    • values

      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • resolve

      public StackManipulation resolve(TypeDescription instrumentedType)
      Resolves this offset provider for a given instrumented type.
      Specified by:
      resolve in interface HashCodeMethod.OffsetProvider
      Parameters:
      instrumentedType - The instrumented type.
      Returns:
      A stack manipulation that loads the initial hash code onto the operand stack.