public class

ManagedSet

extends LinkedHashSet<E>
implements BeanMetadataElement Mergeable
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>

Class Overview

Tag collection class used to hold managed Set values, which may include runtime bean references (to be resolved into bean objects).

Summary

Public Constructors
ManagedSet()
ManagedSet(int initialCapacity)
Public Methods
String getElementTypeName()
Return the default element type name (class name) to be used for this set.
Object getSource()
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.
[Expand]
Inherited Methods
From class java.util.HashSet
From class java.util.AbstractSet
From class java.util.AbstractCollection
From class java.lang.Object
From interface java.lang.Iterable
From interface java.util.Collection
From interface java.util.Set
From interface org.springframework.beans.BeanMetadataElement
From interface org.springframework.beans.Mergeable

Public Constructors

public ManagedSet ()

Also: SpringBeans

public ManagedSet (int initialCapacity)

Also: SpringBeans

Public Methods

public String getElementTypeName ()

Also: SpringBeans

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

public Object getSource ()

Also: SpringBeans

Return the configuration source Object for this metadata element (may be null).

public boolean isMergeEnabled ()

Also: SpringBeans

Is merging enabled for this particular instance?

public Set<E> merge (Object parent)

Also: SpringBeans

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.

Parameters
parent the object to merge with
Returns
  • the result of the merge operation

public void setElementTypeName (String elementTypeName)

Also: SpringBeans

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

public void setMergeEnabled (boolean mergeEnabled)

Also: SpringBeans

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

public void setSource (Object source)

Also: SpringBeans

Set the configuration source Object for this metadata element.

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