Interface CollectionContainerSortProvider


@NullMarked public interface CollectionContainerSortProvider
Provides sorting functionality for CollectionContainers based on a specific context. This interface is used to obtain a Sorter instance that can be applied to a CollectionContainer according to the information provided in the CollectionContainerSortContext.
  • Method Details

    • getSorter

      @Nullable Sorter getSorter(CollectionContainerSortContext context)
      Returns a sorter for the specified context.

      Implementations should return null if the context is not supported.

      Parameters:
      context - context containing the target container and optional loader
      Returns:
      sorter for the context, or null if this provider does not support it