public class ManagedList<E> extends java.util.ArrayList<E> implements Mergeable, BeanMetadataElement
| Constructor and Description |
|---|
ManagedList() |
ManagedList(int initialCapacity) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getElementTypeName()
Return the default element type name (class name) to be used for this list.
|
java.lang.Object |
getSource()
Return the configuration source
Object for this metadata element
(may be null). |
boolean |
isMergeEnabled()
Is merging enabled for this particular instance?
|
java.util.List<E> |
merge(java.lang.Object parent)
Merge the current value set with that of the supplied object.
|
void |
setElementTypeName(java.lang.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(java.lang.Object source)
Set the configuration source
Object for this metadata element. |
add, add, addAll, addAll, clear, clone, contains, ensureCapacity, forEach, get, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, removeIf, removeRange, replaceAll, retainAll, set, size, sort, spliterator, subList, toArray, toArray, trimToSizepublic ManagedList()
public ManagedList(int initialCapacity)
public void setSource(@Nullable java.lang.Object source)
Object for this metadata element.
The exact type of the object will depend on the configuration mechanism used.
@Nullable public java.lang.Object getSource()
BeanMetadataElementObject for this metadata element
(may be null).getSource in interface BeanMetadataElementpublic void setElementTypeName(java.lang.String elementTypeName)
@Nullable public java.lang.String getElementTypeName()
public void setMergeEnabled(boolean mergeEnabled)
public boolean isMergeEnabled()
MergeableisMergeEnabled in interface Mergeablepublic java.util.List<E> merge(@Nullable java.lang.Object parent)
MergeableThe supplied object is considered the parent, and values in the callee's value set must override those of the supplied object.