Package net.imglib2

Interface RealCursor<T>

    • Method Detail

      • copyCursor

        @Deprecated
        default RealCursor<T> copyCursor()
        Deprecated.
        Use copy() instead
      • copy

        RealCursor<T> copy()
        Specified by:
        copy in interface Sampler<T>
        Returns:
        - A new Sampler in the same state accessing the same values. It does NOT copy T, just the state of the Sampler. Otherwise use T.copy() if available. Sampler.copy().get() == Sampler.get(), i.e. both hold the same value, not necessarily the same instance (this is the case for an ArrayCursor for example)
      • next

        default T next()
        Default implementation, calls Iterator.fwd() then Sampler.get().

        Note, that hasNext() is not checked before fwd(). If such a check is desired it should be implemented in fwd() (throwing NoSuchElementException).

        Specified by:
        next in interface java.util.Iterator<T>