Uses of Class
com.google.mu.collect.Chain

Packages that use Chain
Package
Description
A few useful collections.
BiStream, BiCollector, MoreStreams, MoreCollectors etc.
  • Uses of Chain in com.google.mu.collect

    Methods in com.google.mu.collect that return Chain
    Modifier and Type
    Method
    Description
    static <T> Chain<T>
    Chain.concat(Chain<? extends T> left, Chain<? extends T> right)
    Returns a new Chain concatenating elements from the left Chain and the right Chain, in O(1) time.
    Chain.concat(T lastElement)
    Returns a new Chain concatenating elements from this Chain followed by lastElement, 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 with first followed by remaining.
    Methods in com.google.mu.collect with parameters of type Chain
    Modifier and Type
    Method
    Description
    static <T> Chain<T>
    Chain.concat(Chain<? extends T> left, Chain<? extends T> right)
    Returns a new Chain concatenating elements from the left Chain and the right Chain, in O(1) time.
  • Uses of Chain in com.google.mu.util.stream

    Methods in com.google.mu.util.stream that return types with arguments of type Chain
    Modifier and Type
    Method
    Description
    static <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 a Chain, which is an immutable List that may have been deeply concatenated.