public final class MethodClassKey extends Object implements Comparable<MethodClassKey>
toString()
representation and Comparable
support (as suggested for custom HashMap
keys as of Java 8).Constructor and Description |
---|
MethodClassKey(Method method,
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(Object other) |
int |
hashCode() |
String |
toString() |
public MethodClassKey(Method method, @Nullable 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 int compareTo(MethodClassKey other)
compareTo
in interface Comparable<MethodClassKey>