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.
    • 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
    • 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.
      • equals

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

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • toString

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