org.springframework.beans

## 接口 Mergeable

- 所有已知实现类:
    ManagedArray, ManagedList, ManagedMap, ManagedProperties, ManagedSet

      public interface Mergeable

  Interface representing an object whose value set can be merged with that of a parent object.
  从以下版本开始:
    2.0
  作者:
    Rob Harrop
  另请参阅:
    `ManagedSet`, `ManagedList`, `ManagedMap`, `ManagedProperties`

- - ### 方法概要

    所有方法 实例方法 抽象方法
    限定符和类型 | 方法和说明
    --- | ---
    `boolean` | `isMergeEnabled()` Is merging enabled for this particular instance?
    `Object` | `merge(Object parent)` Merge the current value set with that of the supplied object.

- - ### 方法详细资料

    - #### isMergeEnabled

          boolean isMergeEnabled()

      Is merging enabled for this particular instance?

    - #### merge

          Object merge(@Nullable
                       Object parent)

      Merge the current value set with that of the supplied object.

      The supplied object is considered the parent, and values in the callee's value set must override those of the supplied object.

      参数:
        `parent` - the object to merge with
      返回:
        the result of the merge operation
      抛出:
        `IllegalArgumentException` - if the supplied parent is `null`
        `IllegalStateException` - if merging is not enabled for this instance (i.e. `mergeEnabled` equals `false`).