Class FlattenSpliterator<E>

  • All Implemented Interfaces:
    Spliterator<E>

    public class FlattenSpliterator<E>
    extends Object
    implements Spliterator<E>
    Composes an array of Collections into a spliterator. This spliterator will only split up to the collection and will not split the spliterator from the collection itself.
    Since:
    9.3
    Author:
    wburns
    • Constructor Detail

      • FlattenSpliterator

        public FlattenSpliterator​(IntFunction<Collection<E>> toCollection,
                                  int length,
                                  int additionalCharacteristics)
    • Method Detail

      • tryAdvance

        public boolean tryAdvance​(Consumer<? super E> action)
      • forEachRemaining

        public void forEachRemaining​(Consumer<? super E> action)
      • estimateSize

        public long estimateSize()
      • characteristics

        public int characteristics()