Enum HashCodeAndEqualsPlugin.Enhance.InvokeSuper

java.lang.Object
java.lang.Enum<HashCodeAndEqualsPlugin.Enhance.InvokeSuper>
net.bytebuddy.build.HashCodeAndEqualsPlugin.Enhance.InvokeSuper
All Implemented Interfaces:
Serializable, Comparable<HashCodeAndEqualsPlugin.Enhance.InvokeSuper>, java.lang.constant.Constable
Enclosing class:
HashCodeAndEqualsPlugin.Enhance

public static enum HashCodeAndEqualsPlugin.Enhance.InvokeSuper extends Enum<HashCodeAndEqualsPlugin.Enhance.InvokeSuper>
A strategy for determining the base value of a hash code or equality contract.
  • Enum Constant Details

  • Constructor Details

    • InvokeSuper

      private InvokeSuper()
  • Method Details

    • values

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

      Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified name
      NullPointerException - if the argument is null
    • hashCodeMethod

      protected abstract HashCodeMethod hashCodeMethod(TypeDescription instrumentedType, boolean typeHash, boolean subclassEquality)
      Resolves the hash code method to use.
      Parameters:
      instrumentedType - The instrumented type.
      typeHash - true if the base hash should be based on the instrumented class's type.
      subclassEquality - true if subclasses can be equal to their base classes.
      Returns:
      The hash code method to use.
    • equalsMethod

      protected abstract EqualsMethod equalsMethod(TypeDescription instrumentedType)
      Resolves the equals method to use.
      Parameters:
      instrumentedType - The instrumented type.
      Returns:
      The equals method to use.