Interface ProjectionCollectorProviderFactory


@Incubating public interface ProjectionCollectorProviderFactory
Defines the factory that can create projection collector providers based on a container type R and container element type U.
  • Method Details

    • projectionCollectorProvider

      <R, U> ProjectionCollector.Provider<U,R> projectionCollectorProvider(Class<R> containerType, Class<U> containerElementType)
      Type Parameters:
      R - The type of the final result containing values of type V.
      U - The type of values to collector after being transformed.
      Parameters:
      containerType - The type of the expected container. Passing a null value as a container type will result in a nullable collector being returned, i.e. a collector that does not wrap the value in any sort of container.
      containerElementType - The type of the container elements
      Returns:
      The projection collector provider for a requested container/element types.