public final class MethodClassKey extends java.lang.Object implements java.lang.Comparable<MethodClassKey>
toString()
representation and Comparable
support (as suggested for custom HashMap
keys as of Java 8).Constructor and Description |
---|
MethodClassKey(java.lang.reflect.Method method,
java.lang.Class<?> targetClass)
Create a key object for the given method and target class.
|
Modifier and Type | Method and Description |
---|---|
int |
compareTo(MethodClassKey other) |
boolean |
equals(java.lang.Object other) |
int |
hashCode() |
java.lang.String |
toString() |
public MethodClassKey(java.lang.reflect.Method method, @Nullable java.lang.Class<?> targetClass)
method
- the method to wrap (must not be null
)targetClass
- the target class that the method will be invoked
on (may be null
if identical to the declaring class)public boolean equals(java.lang.Object other)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
public int compareTo(MethodClassKey other)
compareTo
in interface java.lang.Comparable<MethodClassKey>