MutablePropertySources.from constructor

MutablePropertySources.from(
  1. PropertySources propertySources
)

Creates a new mutable collection by copying all entries from an existing PropertySources instance.

The original ordering is preserved, meaning each source will have the same precedence relative to the others as in the original collection.

This is primarily used when upgrading an immutable source collection into a mutable one.

Implementation

MutablePropertySources.from(PropertySources propertySources) {
  for (final source in propertySources) {
    addLast(source);
  }
}