Package org.springframework.core
Class MethodClassKey
java.lang.Object
org.springframework.core.MethodClassKey
- All Implemented Interfaces:
Comparable<MethodClassKey>
A common key class for a method against a specific target class,
including
toString() representation and Comparable
support (as suggested for custom HashMap keys as of Java 8).- Since:
- 4.3
- Author:
- Juergen Hoeller
-
Constructor Summary
ConstructorsConstructorDescriptionMethodClassKey(Method method, Class<?> targetClass) Create a key object for the given method and target class. -
Method Summary
-
Constructor Details
-
MethodClassKey
Create a key object for the given method and target class.- Parameters:
method- the method to wrap (must not benull)targetClass- the target class that the method will be invoked on (may benullif identical to the declaring class)
-
-
Method Details
-
equals
-
hashCode
public int hashCode() -
toString
-
compareTo
- Specified by:
compareToin interfaceComparable<MethodClassKey>
-