org.springframework.beans.factory.support

## 类 MethodOverrides

- java.lang.Object
- - org.springframework.beans.factory.support.MethodOverrides

-     public class MethodOverrides
      extends Object

  Set of method overrides, determining which, if any, methods on a managed object the Spring IoC container will override at runtime.

  The currently supported `MethodOverride` variants are `LookupOverride` and `ReplaceOverride`.

  从以下版本开始:
    1.1
  作者:
    Rod Johnson, Juergen Hoeller
  另请参阅:
    `MethodOverride`

- - ### 构造器概要

    构造器
    构造器和说明
    `MethodOverrides()` Create new MethodOverrides.
    `MethodOverrides(MethodOverrides other)` Deep copy constructor.

  - ### 方法概要

    所有方法 实例方法 具体方法
    限定符和类型 | 方法和说明
    --- | ---
    `void` | `addOverride(MethodOverride override)` Add the given method override.
    `void` | `addOverrides(MethodOverrides other)` Copy all given method overrides into this object.
    `boolean` | `equals(Object other)`
    `MethodOverride` | `getOverride(Method method)` Return the override for the given method, if any.
    `Set<MethodOverride>` | `getOverrides()` Return all method overrides contained by this object.
    `int` | `hashCode()`
    `boolean` | `isEmpty()` Return whether the set of method overrides is empty.

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

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

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

    - #### MethodOverrides

          public MethodOverrides()

      Create new MethodOverrides.

    - #### MethodOverrides

          public MethodOverrides(MethodOverrides other)

      Deep copy constructor.

  - ### 方法详细资料

    - #### addOverrides

          public void addOverrides(@Nullable
                                   MethodOverrides other)

      Copy all given method overrides into this object.

    - #### addOverride

          public void addOverride(MethodOverride override)

      Add the given method override.

    - #### getOverrides

          public Set<MethodOverride> getOverrides()

      Return all method overrides contained by this object.
      返回:
        Set of MethodOverride objects
      另请参阅:
        `MethodOverride`

    - #### isEmpty

          public boolean isEmpty()

      Return whether the set of method overrides is empty.

    - #### getOverride

          @Nullable
          public MethodOverride getOverride(Method method)

      Return the override for the given method, if any.
      参数:
        `method` - method to check for overrides for
      返回:
        the method override, or `null` if none

    - #### equals

          public boolean equals(Object other)

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

    - #### hashCode

          public int hashCode()

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