|
The Spring Framework | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.springframework.beans.factory.support.ManagedSet
public class ManagedSet
Tag collection class used to hold managed Set values, which may include runtime bean references (to be resolved into bean objects).
Wraps a target Set, which will be a linked set if possible (that is, if running on JDK 1.4 or if Commons Collections 3.x is available).
CollectionFactory.createLinkedSetIfPossible(int)| Constructor Summary | |
|---|---|
ManagedSet()
|
|
ManagedSet(int initialCapacity)
|
|
ManagedSet(Set targetSet)
|
|
| Method Summary | |
|---|---|
boolean |
add(Object obj)
|
boolean |
addAll(Collection coll)
|
void |
clear()
|
boolean |
contains(Object obj)
|
boolean |
containsAll(Collection coll)
|
boolean |
equals(Object obj)
|
Object |
getSource()
Return the configuration source Object for this metadata element
(may be null). |
int |
hashCode()
|
boolean |
isEmpty()
|
boolean |
isMergeEnabled()
Is merging enabled for this particular instance? |
Iterator |
iterator()
|
Object |
merge(Object parent)
Merge the current value set with that of the supplied object. |
boolean |
remove(Object obj)
|
boolean |
removeAll(Collection coll)
|
boolean |
retainAll(Collection coll)
|
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. |
int |
size()
|
Object[] |
toArray()
|
Object[] |
toArray(Object[] arr)
|
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public ManagedSet()
public ManagedSet(int initialCapacity)
public ManagedSet(Set targetSet)
| Method Detail |
|---|
public void setSource(Object source)
Object for this metadata element.
The exact type of the object will depend on the configuration mechanism used.
public Object getSource()
BeanMetadataElementObject for this metadata element
(may be null).
getSource in interface BeanMetadataElementpublic void setMergeEnabled(boolean mergeEnabled)
public boolean isMergeEnabled()
Mergeable
isMergeEnabled in interface Mergeablepublic Object merge(Object parent)
MergeableThe 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
public int size()
size in interface Collectionsize in interface Setpublic boolean isEmpty()
isEmpty in interface CollectionisEmpty in interface Setpublic boolean contains(Object obj)
contains in interface Collectioncontains in interface Setpublic Iterator iterator()
public Object[] toArray()
toArray in interface CollectiontoArray in interface Setpublic Object[] toArray(Object[] arr)
toArray in interface CollectiontoArray in interface Setpublic boolean add(Object obj)
add in interface Collectionadd in interface Setpublic boolean remove(Object obj)
remove in interface Collectionremove in interface Setpublic boolean containsAll(Collection coll)
containsAll in interface CollectioncontainsAll in interface Setpublic boolean addAll(Collection coll)
addAll in interface CollectionaddAll in interface Setpublic boolean retainAll(Collection coll)
retainAll in interface CollectionretainAll in interface Setpublic boolean removeAll(Collection coll)
removeAll in interface CollectionremoveAll in interface Setpublic void clear()
clear in interface Collectionclear in interface Setpublic int hashCode()
public boolean equals(Object obj)
public String toString()
|
The Spring Framework | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||