org.springframework.beans.factory.support

## 类 ManagedSet<E>

- java.lang.Object
- - java.util.AbstractCollection<E>
  - - java.util.AbstractSet<E>
    - - java.util.HashSet<E>
      - - java.util.LinkedHashSet<E>
        - - org.springframework.beans.factory.support.ManagedSet<E>

- 所有已实现的接口:
    Serializable, Cloneable, Iterable<E>, Collection<E>, Set<E>, BeanMetadataElement, Mergeable

      public class ManagedSet<E>
      extends LinkedHashSet<E>
      implements Mergeable, BeanMetadataElement

  Tag collection class used to hold managed Set values, which may include runtime bean references (to be resolved into bean objects).
  从以下版本开始:
    21.01.2004
  作者:
    Juergen Hoeller, Rob Harrop
  另请参阅:
    序列化表格

- - ### 构造器概要

    构造器
    构造器和说明
    `ManagedSet()`
    `ManagedSet(int initialCapacity)`

  - ### 方法概要

    所有方法 实例方法 具体方法
    限定符和类型 | 方法和说明
    --- | ---
    `String` | `getElementTypeName()` Return the default element type name (class name) to be used for this set.
    `Object` | `getSource()` 获取源对象,可能返回null Return the configuration source `Object` for this metadata element (may be `null`).
    `boolean` | `isMergeEnabled()` Is merging enabled for this particular instance?
    `Set<E>` | `merge(Object parent)` Merge the current value set with that of the supplied object.
    `void` | `setElementTypeName(String elementTypeName)` Set the default element type name (class name) to be used for this set.
    `void` | `setMergeEnabled(boolean mergeEnabled)` Set whether merging should be enabled for this collection, in case of a 'parent' collection value being present.
    `void` | `setSource(Object source)` Set the configuration source `Object` for this metadata element.

    - ### 从类继承的方法 java.util.LinkedHashSet

      `spliterator`

    - ### 从类继承的方法 java.util.HashSet

      `add, clear, clone, contains, isEmpty, iterator, remove, size`

    - ### 从类继承的方法 java.util.AbstractSet

      `equals, hashCode, removeAll`

    - ### 从类继承的方法 java.util.AbstractCollection

      `addAll, containsAll, retainAll, toArray, toArray, toString`

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

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

    - ### 从接口继承的方法 java.util.Set

      `add, addAll, clear, contains, containsAll, equals, hashCode, isEmpty, iterator, remove, removeAll, retainAll, size, toArray, toArray`

    - ### 从接口继承的方法 java.util.Collection

      `parallelStream, removeIf, stream`

    - ### 从接口继承的方法 java.lang.Iterable

      `forEach`

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

    - #### ManagedSet

          public ManagedSet()

    - #### ManagedSet

          public ManagedSet(int initialCapacity)

  - ### 方法详细资料

    - #### setSource

          public void setSource(@Nullable
                                Object source)

      Set the configuration source `Object` for this metadata element.

      The exact type of the object will depend on the configuration mechanism used.

    - #### getSource

          @Nullable
          public Object getSource()

      从接口复制的说明: `BeanMetadataElement`
      获取源对象,可能返回null Return the configuration source `Object` for this metadata element (may be `null`).
      指定者:
        `getSource` 在接口中 `BeanMetadataElement`

    - #### setElementTypeName

          public void setElementTypeName(@Nullable
                                         String elementTypeName)

      Set the default element type name (class name) to be used for this set.

    - #### getElementTypeName

          @Nullable
          public String getElementTypeName()

      Return the default element type name (class name) to be used for this set.

    - #### setMergeEnabled

          public void setMergeEnabled(boolean mergeEnabled)

      Set whether merging should be enabled for this collection, in case of a 'parent' collection value being present.

    - #### isMergeEnabled

          public boolean isMergeEnabled()

      从接口复制的说明: `Mergeable`
      Is merging enabled for this particular instance?
      指定者:
        `isMergeEnabled` 在接口中 `Mergeable`

    - #### merge

          public Set<E> merge(@Nullable
                              Object parent)

      从接口复制的说明: `Mergeable`
      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.

      指定者:
        `merge` 在接口中 `Mergeable`
      参数:
        `parent` - the object to merge with
      返回:
        the result of the merge operation