Class FixedSizeCollector<T,A,R>

java.lang.Object
com.google.mu.util.stream.FixedSizeCollector<T,A,R>
All Implemented Interfaces:
Collector<T,A,R>

public abstract class FixedSizeCollector<T,A,R> extends Object implements Collector<T,A,R>
A collector that expects a fixed number of input elements.

In addition to being used as regular Collector, can also be passed as one of the multiple conditional cases to MoreCollectors.switching(com.google.mu.util.stream.FixedSizeCollector<T, ?, R>, com.google.mu.util.stream.FixedSizeCollector<T, ?, R>...).

Since:
5.5