T - the source and target Configuration typepublic interface ConfigurationMerger<T>
Configuration objects of the same type
<T>.| Modifier and Type | Method and Description |
|---|---|
Configuration<T> |
merge(Configuration<T> config1,
Configuration<T> config2)
Combines two
Configuration objects into a new Configuration with the
following characteristics:
The resulting object will receive all the elements of the input
Configuration objects
In case of conflicting keys, the values at the highest-precedence
Configuration will be selected
The metadata of the highest-precedence Configuration (namespace and
precedence) will be applied to the new Configuration
|
Configuration<T> merge(Configuration<T> config1, Configuration<T> config2)
Configuration objects into a new Configuration with the
following characteristics:
Configuration objectsConfiguration will be selectedConfiguration (namespace and
precedence) will be applied to the new Configurationconfig1 - the first Configuration; not nullconfig2 - the second Configuration; not nullConfiguration resulting from the combination of config1
and config2NullPointerException - if a null Configuration is receivedCopyright © 2022. All rights reserved.