apply abstract method

List<PropertySource> apply(
  1. List<PropertySource> sources
)

Applies this ordering rule to the provided list of `PropertySource`s.

Implementations must treat sources as immutable input and return a new list representing the reordered sequence. The returned list may:

  • preserve the original order,
  • apply custom sorting algorithms,
  • enforce precedence or override relationships,
  • remove or merge duplicates,
  • or otherwise reorganize the collection.

Parameters

  • sources – The list of property sources to be ordered.

Returns

A newly constructed list representing the result of applying this rule.

Important

This method must never modify the original sources list.

Implementation

List<PropertySource> apply(List<PropertySource> sources);