Interface ProjectionCollectorProviderFactory
Defines the factory that can create
projection collector providers
based
on a container type R
and container element type U
.-
Method Summary
Modifier and TypeMethodDescription<R,
U> ProjectionCollector.Provider <U, R> projectionCollectorProvider
(Class<R> containerType, Class<U> containerElementType)
-
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 typeV
.U
- The type of values to collector after being transformed.- Parameters:
containerType
- The type of the expected container. Passing anull
value as a container type will result ina 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.
-