Class IterationSpliterator<T>

  • All Implemented Interfaces:
    java.util.Spliterator<T>

    @Deprecated(since="4.1.0")
    public class IterationSpliterator<T>
    extends java.util.Spliterators.AbstractSpliterator<T>
    Deprecated.
    A Spliterator implementation that wraps an Iteration. It handles occurrence of checked exceptions by wrapping them in RuntimeExceptions, and in addition ensures that the wrapped Iteration is closed when exhausted (if it's a CloseableIteration).
    • Nested Class Summary

      • Nested classes/interfaces inherited from interface java.util.Spliterator

        java.util.Spliterator.OfDouble, java.util.Spliterator.OfInt, java.util.Spliterator.OfLong, java.util.Spliterator.OfPrimitive<T extends java.lang.Object,​T_CONS extends java.lang.Object,​T_SPLITR extends java.util.Spliterator.OfPrimitive<T,​T_CONS,​T_SPLITR>>
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private Iteration<T,​? extends java.lang.Exception> iteration
      Deprecated.
       
      • Fields inherited from interface java.util.Spliterator

        CONCURRENT, DISTINCT, IMMUTABLE, NONNULL, ORDERED, SIZED, SORTED, SUBSIZED
    • Constructor Summary

      Constructors 
      Constructor Description
      IterationSpliterator​(Iteration<T,​? extends java.lang.Exception> iteration)
      Deprecated.
      Creates a Spliterator implementation that wraps the supplied Iteration.
    • Method Summary

      All Methods Instance Methods Concrete Methods Deprecated Methods 
      Modifier and Type Method Description
      void forEachRemaining​(java.util.function.Consumer<? super T> action)
      Deprecated.
       
      boolean tryAdvance​(java.util.function.Consumer<? super T> action)
      Deprecated.
       
      • Methods inherited from class java.util.Spliterators.AbstractSpliterator

        characteristics, estimateSize, trySplit
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface java.util.Spliterator

        getComparator, getExactSizeIfKnown, hasCharacteristics
    • Field Detail

      • iteration

        private final Iteration<T,​? extends java.lang.Exception> iteration
        Deprecated.
    • Constructor Detail

      • IterationSpliterator

        public IterationSpliterator​(Iteration<T,​? extends java.lang.Exception> iteration)
        Deprecated.
        Creates a Spliterator implementation that wraps the supplied Iteration. It handles occurrence of checked exceptions by wrapping them in RuntimeExceptions, and in addition ensures that the wrapped Iteration is closed when exhausted (if it's a CloseableIteration).
        Parameters:
        iteration - the iteration to wrap
    • Method Detail

      • tryAdvance

        public boolean tryAdvance​(java.util.function.Consumer<? super T> action)
        Deprecated.
      • forEachRemaining

        public void forEachRemaining​(java.util.function.Consumer<? super T> action)
        Deprecated.