Class FieldDescription.SignatureToken

java.lang.Object
net.bytebuddy.description.field.FieldDescription.SignatureToken
Enclosing interface:
FieldDescription

public static class FieldDescription.SignatureToken extends Object
A token that uniquely identifies a field by its name and type erasure.
  • Field Details

    • name

      private final String name
      The field's name.
    • type

      private final TypeDescription type
      The field's raw type.
  • Constructor Details

    • SignatureToken

      public SignatureToken(String name, TypeDescription type)
      Creates a new signature token.
      Parameters:
      name - The field's name.
      type - The field's raw type.
  • Method Details

    • getName

      public String getName()
      Returns the name of the represented field.
      Returns:
      The name of the represented field.
    • getType

      public TypeDescription getType()
      Returns the type of the represented field.
      Returns:
      The type of the represented field.
    • hashCode

      @Enhance("hashCode") public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(@MaybeNull Object other)
      Overrides:
      equals in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object