|
The Spring Framework | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.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()
BeanMetadataElement
Object
for this metadata element
(may be null
).
getSource
in interface BeanMetadataElement
public void setMergeEnabled(boolean mergeEnabled)
public boolean isMergeEnabled()
Mergeable
isMergeEnabled
in interface Mergeable
public Object merge(Object parent)
Mergeable
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
public int size()
size
in interface Collection
size
in interface Set
public boolean isEmpty()
isEmpty
in interface Collection
isEmpty
in interface Set
public boolean contains(Object obj)
contains
in interface Collection
contains
in interface Set
public Iterator iterator()
public Object[] toArray()
toArray
in interface Collection
toArray
in interface Set
public Object[] toArray(Object[] arr)
toArray
in interface Collection
toArray
in interface Set
public boolean add(Object obj)
add
in interface Collection
add
in interface Set
public boolean remove(Object obj)
remove
in interface Collection
remove
in interface Set
public boolean containsAll(Collection coll)
containsAll
in interface Collection
containsAll
in interface Set
public boolean addAll(Collection coll)
addAll
in interface Collection
addAll
in interface Set
public boolean retainAll(Collection coll)
retainAll
in interface Collection
retainAll
in interface Set
public boolean removeAll(Collection coll)
removeAll
in interface Collection
removeAll
in interface Set
public void clear()
clear
in interface Collection
clear
in interface Set
public 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 |