Class CollectSpliterators
java.lang.Object
org.docx4j.com.google.common.collect.CollectSpliterators
Spliterator utilities for
common.collect internals.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) static <T> Spliterator<T>filter(Spliterator<T> fromSpliterator, Predicate<? super T> predicate) Returns aSpliteratorfiltered by the specified predicate.(package private) static <F,T> Spliterator<T> flatMap(Spliterator<F> fromSpliterator, Function<? super F, Spliterator<T>> function, int topCharacteristics, long topSize) Returns aSpliteratorthat iterates over the elements of the spliterators generated by applyingfunctionto the elements offromSpliterator.(package private) static <T> Spliterator<T>indexed(int size, int extraCharacteristics, IntFunction<T> function) (package private) static <T> Spliterator<T>indexed(int size, int extraCharacteristics, IntFunction<T> function, Comparator<? super T> comparator) (package private) static <F,T> Spliterator<T> map(Spliterator<F> fromSpliterator, Function<? super F, ? extends T> function) Returns aSpliteratorover the elements offromSpliteratormapped byfunction.
-
Constructor Details
-
CollectSpliterators
private CollectSpliterators()
-
-
Method Details
-
indexed
-
indexed
static <T> Spliterator<T> indexed(int size, int extraCharacteristics, IntFunction<T> function, Comparator<? super T> comparator) -
map
static <F,T> Spliterator<T> map(Spliterator<F> fromSpliterator, Function<? super F, ? extends T> function) Returns aSpliteratorover the elements offromSpliteratormapped byfunction. -
filter
Returns aSpliteratorfiltered by the specified predicate. -
flatMap
static <F,T> Spliterator<T> flatMap(Spliterator<F> fromSpliterator, Function<? super F, Spliterator<T>> function, int topCharacteristics, long topSize) Returns aSpliteratorthat iterates over the elements of the spliterators generated by applyingfunctionto the elements offromSpliterator.
-