Package com.google.mu.util.stream
package com.google.mu.util.stream
BiStream, BiCollector, MoreStreams, MoreCollectors etc.
Package Specification
The code is developed and tested under Java 8.0.-
ClassDescriptionBiAccumulator<C,
L, R> Interface modeling a builder funcction that accepts two parameters.BiCollection<L,R> Deprecated.too nicheBiCollector<K,V, R> Logically, aBiCollector
collects "pairs of things", just as aCollector
collects "things".Common utilities pertaining toBiCollector
.BiIteration<L,R> BiStream<K,V> A class similar toStream
, but operating over a sequence of pairs of objects.BiStream.Builder<K,V> Builder forBiStream
.BiStream.Partitioner<A,B> A predicate used to partition aBiStream
into sub-groups of consecutive pairs.FixedSizeCollector<T,A, R> A collector that expects a fixed number of input elements.Guava-specific Collectors and BiCollectors.Iteration<T>Transforms eager, recursive algorithms into lazy streams.Encapsulates recursive iteration or a lazy block of code with side-effect.A joiner (andCollector
) that joins strings.Static utilities pertaining toCollector
in addition to relevant utilities in JDK and Guava.Static utilities pertaining toStream
in addition to relevant utilities in JDK and Guava.