Class 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.
    • Constructor Detail

      • 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 Detail

      • 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

        public int hashCode()
        Overrides:
        hashCode in class Object