Class RealCursorSpliterator<T>

java.lang.Object
net.imglib2.stream.RealCursorSpliterator<T>
Type Parameters:
T - the type of elements returned by this Spliterator, and the pixel type of the underlying cursor.
All Implemented Interfaces:
Spliterator<T>, EuclideanSpace, RealLocalizable, Sampler<T>, RealLocalizableSpliterator<T>, Typed<T>

public class RealCursorSpliterator<T> extends Object implements RealLocalizableSpliterator<T>
Spliterator implementation on top of RealCursor.
  • Field Details

    • cursor

      private final RealCursor<T> cursor
      The underlying cursor, positioned such that cursor.next() yields the element at index.
    • index

      private long index
      The current index, modified on advance/split.
    • fence

      private final long fence
      One past last index
    • characteristics

      private final int characteristics
      Characteristics always include SIZED | SUBSIZED.
  • Constructor Details

    • RealCursorSpliterator

      public RealCursorSpliterator(RealCursor<T> cursor, long origin, long fence, int additionalCharacteristics)
      Creates a spliterator covering the given range.
      Parameters:
      cursor - provides elements, starting with the element at origin, on cursor.next()
      origin - the least index (inclusive) to cover
      fence - one past the greatest index to cover
      additionalCharacteristics - additional characteristics besides SIZED | SUBSIZED
  • Method Details