Class FieldDescription.SignatureToken

  • Enclosing interface:
    FieldDescription

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

      Fields 
      Modifier and Type Field Description
      private java.lang.String name
      The field's name.
      private TypeDescription type
      The field's raw type.
    • Constructor Summary

      Constructors 
      Constructor Description
      SignatureToken​(java.lang.String name, TypeDescription type)
      Creates a new signature token.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean equals​(java.lang.Object other)  
      java.lang.String getName()
      Returns the name of the represented field.
      TypeDescription getType()
      Returns the type of the represented field.
      int hashCode()  
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
    • Field Detail

      • name

        private final java.lang.String name
        The field's name.
    • Constructor Detail

      • SignatureToken

        public SignatureToken​(java.lang.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 java.lang.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 java.lang.Object
      • equals

        public boolean equals​(java.lang.Object other)
        Overrides:
        equals in class java.lang.Object
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object