org.springframework.core

## 类 MethodClassKey

- java.lang.Object
- - org.springframework.core.MethodClassKey

- 所有已实现的接口:
    Comparable<MethodClassKey>

      public final class MethodClassKey
      extends Object
      implements 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).
  从以下版本开始:
    4.3
  作者:
    Juergen Hoeller

- - ### 构造器概要

    构造器
    构造器和说明
    `MethodClassKey(Method method, Class<?> targetClass)` Create a key object for the given method and target class.

  - ### 方法概要

    所有方法 实例方法 具体方法
    限定符和类型 | 方法和说明
    --- | ---
    `int` | `compareTo(MethodClassKey other)`
    `boolean` | `equals(Object other)`
    `int` | `hashCode()`
    `String` | `toString()`

    - ### 从类继承的方法 java.lang.Object

      `clone, finalize, getClass, notify, notifyAll, wait, wait, wait`

- - ### 构造器详细资料

    - #### MethodClassKey

          public MethodClassKey(Method method,
                                @Nullable
                                Class<?> targetClass)

      Create a key object for the given method and target class.
      参数:
        `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)

  - ### 方法详细资料

    - #### equals

          public boolean equals(Object other)

      覆盖:
        `equals` 在类中 `Object`

    - #### hashCode

          public int hashCode()

      覆盖:
        `hashCode` 在类中 `Object`

    - #### toString

          public String toString()

      覆盖:
        `toString` 在类中 `Object`

    - #### compareTo

          public int compareTo(MethodClassKey other)

      指定者:
        `compareTo` 在接口中 `Comparable<MethodClassKey>`