Class AbstractSplitableIterator<T>

java.lang.Object
org.javimmutable.collections.iterators.AbstractSplitableIterator<T>
All Implemented Interfaces:
Iterator<T>, SplitableIterator<T>
Direct Known Subclasses:
GenericIterator, LazyMultiIterator, SingleValueIterator, TransformIterator

public abstract class AbstractSplitableIterator<T> extends Object implements SplitableIterator<T>
  • Constructor Details

    • AbstractSplitableIterator

      public AbstractSplitableIterator()
  • Method Details

    • spliterator

      @Nonnull public Spliterator<T> spliterator(int characteristics)
      Returns a Spliterator with the specified characteristics that use this Iterator to visit all elements. Advancing the Spliterator also advances this Iterator so the two cannot be used at the same time.
      Specified by:
      spliterator in interface SplitableIterator<T>