Class WriteConvertedIterableInterval<A,​B>

    • Field Detail

      • converterSupplier

        private final java.util.function.Supplier<SamplerConverter<? super A,​B>> converterSupplier
    • Method Detail

      • cursor

        public WriteConvertedCursor<A,​B> cursor()
        Description copied from interface: IterableRealInterval

        Returns a RealCursor that iterates with optimal speed without calculating the location at each iteration step. Localization is performed on demand.

        Use this where localization is required rarely/ not for each iteration.

        Returns:
        fast iterating iterator
      • localizingCursor

        public WriteConvertedCursor<A,​B> localizingCursor()
        Description copied from interface: IterableRealInterval

        Returns a RealLocalizable Iterator that calculates its location at each iteration step. That is, localization is performed with optimal speed.

        Use this where localization is required often/ for each iteration.

        Returns:
        fast localizing iterator
      • getType

        public B getType()
        Description copied from interface: IterableRealInterval
        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.

        The default implementation returns IterableRealInterval.firstElement(). Derived classes may choose different implementations for improved performance.

        Returns:
        an instance of T