E - the element typepublic class ManagedSet<E> extends LinkedHashSet<E> implements Mergeable, BeanMetadataElement
| Constructor and Description |
|---|
ManagedSet() |
ManagedSet(int initialCapacity) |
| Modifier and Type | Method and Description |
|---|---|
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.
|
static <E> ManagedSet<E> |
of(E... elements)
Return a new instance containing an arbitrary number of elements.
|
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. |
spliteratoradd, clear, clone, contains, isEmpty, iterator, remove, sizeequals, hashCode, removeAlladdAll, containsAll, retainAll, toArray, toArray, toStringfinalize, getClass, notify, notifyAll, wait, wait, waitadd, addAll, clear, contains, containsAll, equals, hashCode, isEmpty, iterator, remove, removeAll, retainAll, size, toArray, toArrayparallelStream, removeIf, streampublic static <E> ManagedSet<E> of(E... elements)
E - the Set's element typeelements - the elements to be contained in the setSet containing the specified elementspublic void setSource(@Nullable
Object source)
Object for this metadata element.
The exact type of the object will depend on the configuration mechanism used.
@Nullable public Object getSource()
BeanMetadataElementObject for this metadata element
(may be null).getSource in interface BeanMetadataElementpublic void setElementTypeName(@Nullable
String elementTypeName)
@Nullable public String getElementTypeName()
public void setMergeEnabled(boolean mergeEnabled)
public boolean isMergeEnabled()
MergeableisMergeEnabled in interface Mergeable