类 ManagedList<E>
- java.lang.Object
- java.util.AbstractCollection<E>
- java.util.AbstractList<E>
- java.util.ArrayList<E>
- org.springframework.beans.factory.support.ManagedList<E>
- 所有已实现的接口:
Serializable
,Cloneable
,Iterable<E>
,Collection<E>
,List<E>
,RandomAccess
,BeanMetadataElement
,Mergeable
- 直接已知子类:
ManagedArray
public class ManagedList<E> extends ArrayList<E> implements Mergeable, BeanMetadataElement
Tag collection class used to hold managed List elements, which may include runtime bean references (to be resolved into bean objects).- 从以下版本开始:
- 27.05.2003
- 作者:
- Rod Johnson, Rob Harrop, Juergen Hoeller
- 另请参阅:
- 序列化表格
字段概要
从类继承的字段 java.util.AbstractList
modCount
构造器概要
构造器 构造器 说明 ManagedList()
ManagedList(int initialCapacity)
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 String
getElementTypeName()
Return the default element type name (class name) to be used for this list.Object
getSource()
Return the configuration sourceObject
for this metadata element (may benull
).boolean
isMergeEnabled()
Is merging enabled for this particular instance?List<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 list.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 sourceObject
for this metadata element.从类继承的方法 java.util.ArrayList
add, add, addAll, addAll, clear, clone, contains, ensureCapacity, equals, forEach, get, hashCode, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, removeIf, removeRange, replaceAll, retainAll, set, size, sort, spliterator, subList, toArray, toArray, trimToSize
从类继承的方法 java.util.AbstractCollection
containsAll, toString
从接口继承的方法 java.util.Collection
parallelStream, stream, toArray
从接口继承的方法 java.util.List
containsAll
构造器详细资料
ManagedList
public ManagedList()
ManagedList
public ManagedList(int initialCapacity)
方法详细资料
setSource
public void setSource(Object source)
Set the configuration sourceObject
for this metadata element.The exact type of the object will depend on the configuration mechanism used.
getSource
public Object getSource()
从接口复制的说明:BeanMetadataElement
Return the configuration sourceObject
for this metadata element (may benull
).- 指定者:
getSource
在接口中BeanMetadataElement
setElementTypeName
public void setElementTypeName(String elementTypeName)
Set the default element type name (class name) to be used for this list.
getElementTypeName
public String getElementTypeName()
Return the default element type name (class name) to be used for this list.
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