Uses of Interface
org.tquadrat.foundation.stream.Selector

Packages that use Selector
Package
Description
The code in this package was originally written by Dominic Fox and provided in the package com.codepoetics.protonpack.
The internal classes for the stream extensions.
  • Uses of Selector in org.tquadrat.foundation.stream

    Modifier and Type
    Method
    Description
    static <T> Selector<T>
    Selectors.roundRobin()
    Returns a "Round Robin" Selector implementation.
    static <T extends Comparable<T>>
    Selector<T>
    Selectors.takeMax()
    Returns a Selector implementation that will always return the index for the greatest value from the given array, based on the natural order of the values.
    static <T> Selector<T>
    Selectors.takeMax(Comparator<? super T> comparator)
    Returns a Selector implementation that will always return the index for the greatest value from the given array, imposed by the given comparator.
    static <T extends Comparable<T>>
    Selector<T>
    Selectors.takeMin()
    Returns a Selector implementation that will always return the index for the smallest value from the given array, based on the natural order of the values.
    static <T> Selector<T>
    Selectors.takeMin(Comparator<? super T> comparator)
    Returns a Selector implementation that will always return the index for the smallest value from the given array, imposed by the given comparator.
    Methods in org.tquadrat.foundation.stream with parameters of type Selector
    Modifier and Type
    Method
    Description
    static <T> Stream<T>
    StreamUtils.interleave(Selector<T> selector, List<? extends Stream<T>> streams)
    Constructs a stream which interleaves the supplied streams, picking items using the supplied selector function.

    The selector function will be passed an array containing one value from each stream, or null if that stream has no more values, and must return the integer index of the value to accept.
    static <T> Stream<T>
    StreamUtils.interleave(Selector<T> selector, Stream<T>... streams)
    Constructs a stream which interleaves the supplied streams, picking items using the supplied selector function.

    The selector function will be passed an array containing one value from each stream, or null if that stream has no more values, and must return the integer index of the value to accept.
  • Uses of Selector in org.tquadrat.foundation.stream.internal

    Methods in org.tquadrat.foundation.stream.internal with parameters of type Selector
    Modifier and Type
    Method
    Description
    static final <T> Spliterator<T>
    InterleavingSpliterator.interleaving(Spliterator<T>[] spliterators, Selector<T> selector)
    Factory method for instances of InterleavingSpliterator.