Interface ProjectionAccumulator.Provider<U,R>
- Type Parameters:
U- The type of values to accumulate after being transformed.R- The type of the final result containing values of typeV.
- All Superinterfaces:
ProjectionCollector.Provider<U,R>
- Enclosing interface:
ProjectionAccumulator<E,V, A, R>
public static interface ProjectionAccumulator.Provider<U,R>
extends ProjectionCollector.Provider<U,R>
Provides an accumulator for a given type of values to accumulate (
T).
The provider may always return the same accumulator, if generics are irrelevant and it's safe to do so.
-
Method Summary
-
Method Details
-
get
- Specified by:
getin interfaceProjectionCollector.Provider<U,R> - Type Parameters:
T- The type of values to accumulate before being transformed.- Returns:
- An accumulator for the given type.
-
isSingleValued
boolean isSingleValued()- Specified by:
isSingleValuedin interfaceProjectionCollector.Provider<U,R> - Returns:
trueif accumulators returned byget()can only accept a single value, and will fail beyond that.
-