public final class MethodClassKey extends Object implements Comparable<MethodClassKey>
toString() representation and Comparable
support (as suggested for custom HashMap keys as of Java 8).| 构造器和说明 |
|---|
MethodClassKey(Method method,
Class<?> targetClass)
Create a key object for the given method and target class.
|
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 在接口中 Comparable<MethodClassKey>