Package com.google.mu.util.stream
Class FixedSizeCollector<T,A,R>
java.lang.Object
com.google.mu.util.stream.FixedSizeCollector<T,A,R>
- All Implemented Interfaces:
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
-
Nested Class Summary
Nested classes/interfaces inherited from interface java.util.stream.Collector
Collector.Characteristics
-
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface java.util.stream.Collector
accumulator, characteristics, combiner, finisher, supplier