Uses of Class
com.google.mu.util.stream.FixedSizeCollector
Package
Description
BiStream, BiCollector, MoreStreams, MoreCollectors etc.
-
Uses of FixedSizeCollector in com.google.mu.util.stream
Modifier and TypeMethodDescriptionstatic <T,
R> FixedSizeCollector <T, ?, R> Returns a collector that collects the only three elements from the input and transforms them using themapper
function.static <T,
R> FixedSizeCollector <T, ?, R> Returns a collector that collects the only four elements from the input and transforms them using themapper
function.static <T,
R> FixedSizeCollector <T, ?, R> Returns a collector that collects the only five elements from the input and transforms them using themapper
function.static <T,
R> FixedSizeCollector <T, ?, R> Returns a collector that collects the only six elements from the input and transforms them using themapper
function.static <T,
R> FixedSizeCollector <T, ?, R> Returns a collector that collects the only seven elements from the input and transforms them using themapper
function.static <T,
R> FixedSizeCollector <T, ?, R> Returns a collector that collects the only eight elements from the input and transforms them using themapper
function.static <T,
R> FixedSizeCollector <T, ?, R> MoreCollectors.combining
(BiFunction<? super T, ? super T, ? extends R> mapper) Returns a collector that collects the only two elements from the input and transforms them using themapper
function.static <T,
R> FixedSizeCollector <T, ?, R> MoreCollectors.onlyElement
(Function<? super T, ? extends R> mapper) Returns collector that collects the single element from the input.static <T,
R> FixedSizeCollector <T, ?, R> MoreCollectors.onlyElements
(MapFrom3<? super T, ? extends R> mapper) Same asMoreCollectors.combining(MapFrom3)
.static <T,
R> FixedSizeCollector <T, ?, R> MoreCollectors.onlyElements
(MapFrom4<? super T, ? extends R> mapper) Same asMoreCollectors.combining(MapFrom4)
.static <T,
R> FixedSizeCollector <T, ?, R> MoreCollectors.onlyElements
(MapFrom5<? super T, ? extends R> mapper) Same asMoreCollectors.combining(MapFrom5)
.static <T,
R> FixedSizeCollector <T, ?, R> MoreCollectors.onlyElements
(MapFrom6<? super T, ? extends R> mapper) Same asMoreCollectors.combining(MapFrom6)
.static <T,
R> FixedSizeCollector <T, ?, R> MoreCollectors.onlyElements
(MapFrom7<? super T, ? extends R> mapper) Same asMoreCollectors.combining(MapFrom7)
.static <T,
R> FixedSizeCollector <T, ?, R> MoreCollectors.onlyElements
(MapFrom8<? super T, ? extends R> mapper) Same asMoreCollectors.combining(MapFrom7)
.static <T,
R> FixedSizeCollector <T, ?, R> MoreCollectors.onlyElements
(BiFunction<? super T, ? super T, ? extends R> mapper) Same asMoreCollectors.combining(BiFunction)
.Modifier and TypeMethodDescriptionstatic <T,
R> Collector <T, ?, R> MoreCollectors.switching
(FixedSizeCollector<T, ?, R> firstCase, FixedSizeCollector<T, ?, R>... moreCases) Returns aCollector
that will collect the input elements using the first of[firstCase, moreCases...]
that matches the input elements.