Class ManagedSet<E>

    • Constructor Detail

      • ManagedSet

        public ManagedSet​(int initialCapacity)
    • Method Detail

      • setSource

        public void setSource​(@Nullable
                              Object source)
        Set the configuration source Object for this metadata element.

        The exact type of the object will depend on the configuration mechanism used.

      • setMergeEnabled

        public void setMergeEnabled​(boolean mergeEnabled)
        Set whether merging should be enabled for this collection, in case of a 'parent' collection value being present.
      • merge

        public Set<Emerge​(@Nullable
                            Object parent)
        Description copied from interface: Mergeable
        Merge the current value set with that of the supplied object.

        The supplied object is considered the parent, and values in the callee's value set must override those of the supplied object.

        Specified by:
        merge in interface Mergeable
        Parameters:
        parent - the object to merge with
        Returns:
        the result of the merge operation