Uses of Class
com.google.mu.collect.Chain
Package
Description
A few useful collections.
BiStream, BiCollector, MoreStreams, MoreCollectors etc.
-
Uses of Chain in com.google.mu.collect
Modifier and TypeMethodDescriptionstatic <T> Chain
<T> Returns a new Chain concatenating elements from theleft
Chain and theright
Chain, in O(1) time.Returns a new Chain concatenating elements fromthis
Chain followed bylastElement
, in O(1) time.static <T> Chain
<T> Chain.of
(T element) Returns a Chain with a single element.static <T> Chain
<T> Chain.of
(T first, T... remaining) Returns a Chain withfirst
followed byremaining
. -
Uses of Chain in com.google.mu.util.stream
Modifier and TypeMethodDescriptionstatic <K extends Comparable<K>,
V>
BiCollector<com.google.common.collect.Range<K>, V, BiStream<com.google.common.collect.Range<K>, Chain<V>>> GuavaCollectors.toDisjointRanges()
Returns a BiCollector that merges values mapped to overlapping ranges into aChain
, which is an immutableList
that may have been deeplyconcatenated
.