Class ArrayLocalizingSpliterator<T extends NativeType<T>>

    • Constructor Detail

      • ArrayLocalizingSpliterator

        ArrayLocalizingSpliterator​(ArrayImg<T,​?> img,
                                   int origin,
                                   int fence)
    • Method Detail

      • tryAdvance

        public boolean tryAdvance​(java.util.function.Consumer<? super T> action)
        Specified by:
        tryAdvance in interface java.util.Spliterator<T extends NativeType<T>>
      • fwd

        private void fwd()
      • forEachRemaining

        public void forEachRemaining​(java.util.function.Consumer<? super T> action)
        Specified by:
        forEachRemaining in interface java.util.Spliterator<T extends NativeType<T>>
      • nextLine

        private void nextLine()
      • estimateSize

        public long estimateSize()
        Specified by:
        estimateSize in interface java.util.Spliterator<T extends NativeType<T>>
      • characteristics

        public int characteristics()
        Specified by:
        characteristics in interface java.util.Spliterator<T extends NativeType<T>>
      • get

        public T get()
        Description copied from interface: Sampler
        Access the actual T instance providing access to a pixel, sub-pixel or integral region value the Sampler points at.
        Specified by:
        get in interface Sampler<T extends NativeType<T>>
      • getType

        public T getType()
        Description copied from interface: Typed
        Get an instance of T.

        It should not be assumed that the returned T instance is an independent copy. In particular, repeated calls to getType() may return the same instance.

        Specified by:
        getType in interface Sampler<T extends NativeType<T>>
        Specified by:
        getType in interface Typed<T extends NativeType<T>>
        Returns:
        an instance of T