Interface ProjectionCollector.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 type V.
All Known Subinterfaces:
ProjectionAccumulator.Provider<U,R>
Enclosing interface:
ProjectionCollector<E,V,A,R>

public static interface ProjectionCollector.Provider<U,R>
Provides a collector for a given type of values to accumulate (T).

The provider may always return the same collector, if generics are irrelevant and it's safe to do so.

  • Method Details

    • get

      <T> ProjectionCollector<T,U,?,R> get()
      Type Parameters:
      T - The type of values to accumulate before being transformed.
      Returns:
      A collector for the given type.
    • isSingleValued

      boolean isSingleValued()
      Returns:
      true if collectors returned by get() can only accept a single value, and will fail beyond that.