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.ObjectA token that uniquely identifies a field by its name and type erasure.
-
-
Field Summary
Fields Modifier and Type Field Description private java.lang.StringnameThe field's name.private TypeDescriptiontypeThe 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 booleanequals(java.lang.Object other)java.lang.StringgetName()Returns the name of the represented field.TypeDescriptiongetType()Returns the type of the represented field.inthashCode()java.lang.StringtoString()
-
-
-
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:
hashCodein classjava.lang.Object
-
equals
public boolean equals(@MaybeNull java.lang.Object other)
- Overrides:
equalsin classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-