Package net.bytebuddy.description.field
Class FieldDescription.SignatureToken
- java.lang.Object
-
- net.bytebuddy.description.field.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()
-
-
-
Field Detail
-
name
private final java.lang.String name
The field's name.
-
type
private final TypeDescription type
The field's raw type.
-
-
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 classjava.lang.Object
-
equals
public boolean equals(java.lang.Object other)
- Overrides:
equals
in classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-