Package net.bytebuddy.dynamic.scaffold
Class MethodGraph.Compiler.Default.Harmonizer.ForJavaMethod.Token
- java.lang.Object
-
- net.bytebuddy.dynamic.scaffold.MethodGraph.Compiler.Default.Harmonizer.ForJavaMethod.Token
-
- Enclosing class:
- MethodGraph.Compiler.Default.Harmonizer.ForJavaMethod
protected static class MethodGraph.Compiler.Default.Harmonizer.ForJavaMethod.Token extends java.lang.Object
A token that identifies a Java method's type by its parameter types only.
-
-
Field Summary
Fields Modifier and Type Field Description private int
hashCode
The hash code of this token which is precomputed for to improve performance.private MethodDescription.TypeToken
typeToken
The represented type token.
-
Constructor Summary
Constructors Modifier Constructor Description protected
Token(MethodDescription.TypeToken typeToken)
Creates a new type token for a Java method.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object other)
int
hashCode()
java.lang.String
toString()
-
-
-
Field Detail
-
typeToken
private final MethodDescription.TypeToken typeToken
The represented type token.
-
hashCode
private final int hashCode
The hash code of this token which is precomputed for to improve performance.
-
-
Constructor Detail
-
Token
protected Token(MethodDescription.TypeToken typeToken)
Creates a new type token for a Java method.- Parameters:
typeToken
- The represented type token.
-
-
Method Detail
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
equals
public boolean equals(@MaybeNull java.lang.Object other)
- Overrides:
equals
in classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-