Class AbstractNativeType<T extends AbstractNativeType<T>>

java.lang.Object
net.imglib2.type.AbstractNativeType<T>
All Implemented Interfaces:
NativeType<T>, ValueEquals<T>, Type<T>
Direct Known Subclasses:
ARGBType, BasePairCharType

public abstract class AbstractNativeType<T extends AbstractNativeType<T>> extends Object implements NativeType<T>
TODO
Author:
Stephan Preibisch, Stephan Saalfeld
  • Field Details

    • i

      protected int i
  • Constructor Details

    • AbstractNativeType

      public AbstractNativeType()
  • Method Details

    • updateIndex

      public void updateIndex(int j)
      Description copied from interface: NativeType
      Set the index into the current data array.

      This is used by accessors (e.g., a Cursor) to position the NativeType in the container.

      Specified by:
      updateIndex in interface NativeType<T extends AbstractNativeType<T>>
      Parameters:
      j - the new array index
    • getIndex

      public int getIndex()
      Description copied from interface: NativeType
      Get the current index into the current data array.

      This is used by accessors (e.g., a Cursor) to position the NativeType in the container.

      Specified by:
      getIndex in interface NativeType<T extends AbstractNativeType<T>>
      Returns:
      the current index into the underlying data array
    • incIndex

      public void incIndex()
      Description copied from interface: NativeType
      Increment the index into the current data array.

      This is used by accessors (e.g., a Cursor) to position the NativeType in the container.

      Specified by:
      incIndex in interface NativeType<T extends AbstractNativeType<T>>
    • incIndex

      public void incIndex(int increment)
      Description copied from interface: NativeType
      Increases the index into the current data array by increment steps.

      This is used by accessors (e.g., a Cursor) to position the NativeType in the container.

      Specified by:
      incIndex in interface NativeType<T extends AbstractNativeType<T>>
      Parameters:
      increment - how many steps
    • decIndex

      public void decIndex()
      Description copied from interface: NativeType
      Decrement the index into the current data array.

      This is used by accessors (e.g., a Cursor) to position the NativeType in the container.

      Specified by:
      decIndex in interface NativeType<T extends AbstractNativeType<T>>
    • decIndex

      public void decIndex(int decrement)
      Description copied from interface: NativeType
      Decrease the index into the current data array by decrement steps.

      This is used by accessors (e.g., a Cursor) to position the NativeType in the container.

      Specified by:
      decIndex in interface NativeType<T extends AbstractNativeType<T>>
      Parameters:
      decrement - how many steps
    • toString

      public abstract String toString()
      Overrides:
      toString in class Object