Class CollectSpliterators

java.lang.Object
org.docx4j.com.google.common.collect.CollectSpliterators

@GwtCompatible final class CollectSpliterators extends Object
Spliterator utilities for common.collect internals.
  • Constructor Details

    • CollectSpliterators

      private CollectSpliterators()
  • Method Details

    • indexed

      static <T> Spliterator<T> indexed(int size, int extraCharacteristics, IntFunction<T> function)
    • 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 a Spliterator over the elements of fromSpliterator mapped by function.
    • filter

      static <T> Spliterator<T> filter(Spliterator<T> fromSpliterator, Predicate<? super T> predicate)
      Returns a Spliterator filtered 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 a Spliterator that iterates over the elements of the spliterators generated by applying function to the elements of fromSpliterator.