Class BiConvertedIterableInterval<A,B,C>

All Implemented Interfaces:
Iterable<C>, Dimensions, EuclideanSpace, Interval, IterableInterval<C>, IterableRealInterval<C>, RealInterval, Typed<C>, View

public class BiConvertedIterableInterval<A,B,C> extends AbstractConvertedIterableInterval<A,C>
TODO
  • Field Details

    • sourceIntervalB

      protected final IterableInterval<B> sourceIntervalB
    • converterSupplier

      protected final Supplier<BiConverter<? super A, ? super B, ? super C>> converterSupplier
    • convertedSupplier

      protected final Supplier<? extends C> convertedSupplier
  • Constructor Details

  • Method Details

    • cursor

      public BiConvertedCursor<A,B,C> 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 BiConvertedCursor<A,B,C> localizingCursor()
      Creates a localizing Cursor for sourceA only because this will be used for localization. Make sure that sourceA is the IterableInterval that creates the Cursor that localizes more efficiently.
      Returns:
      fast localizing iterator
    • getDestinationType

      @Deprecated public C getDestinationType()
      Deprecated.
      Returns:
      an instance of the destination Type.
    • getDestinationSupplier

      public Supplier<? extends C> getDestinationSupplier()
      Returns:
      the supplier of conversion destination instances
    • getType

      public C 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
    • getConverter

      @Deprecated public BiConverter<? super A, ? super B, ? super C> getConverter()
      Deprecated.
      Returns an instance of the BiConverter. If the BiConvertedIterableInterval was created with a BiConverter instead of a Supplier, then the returned converter will be this instance.
      Returns:
    • getConverterSupplier

      public Supplier<BiConverter<? super A, ? super B, ? super C>> getConverterSupplier()
      Returns:
      the supplier of converter instances