Interface StreamReducer<RESULT,ENTITY>

Type Parameters:
RESULT - the type of the result of the reduction
ENTITY - the type of the elements in the stream to be reduced
All Known Implementing Classes:
ToListReducer, ToOptionalReducer, ToSingleReducer

public interface StreamReducer<RESULT,ENTITY>
Provides a mechanism for reducing a stream of entities into a single result.
  • Method Summary

    Modifier and Type
    Method
    Description
    reduce(Stream<ENTITY> stream)