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
Methods in org.tquadrat.foundation.stream that return SelectorModifier and TypeMethodDescriptionstatic <T> Selector<T> Selectors.roundRobin()Returns a "Round Robin"Selectorimplementation.static <T extends Comparable<T>>
Selector<T> Selectors.takeMax()Returns aSelectorimplementation 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 aSelectorimplementation 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 aSelectorimplementation 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 aSelectorimplementation 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 SelectorModifier and TypeMethodDescriptionstatic <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, ornullif 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, ornullif 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 SelectorModifier and TypeMethodDescriptionstatic final <T> Spliterator<T> InterleavingSpliterator.interleaving(Spliterator<T>[] spliterators, Selector<T> selector) Factory method for instances ofInterleavingSpliterator.
