com.io7m.jpra.runtime.java

## Interface JPRACursor1DType<T>

- Type Parameters:
    `T` - The type of addressed elements
  All Superinterfaces:
    JPRACursorByteReadableType, JPRACursorType<T>
  All Known Implementing Classes:
    JPRACursor1DByteBufferedChecked, JPRACursor1DByteBufferedUnchecked

      public interface JPRACursor1DType<T>
      extends JPRACursorByteReadableType, JPRACursorType<T>

  The type of cursors that address 1D arrays of values of type `T`.

- - ### Method Summary

    All Methods Instance Methods Abstract Methods
    Modifier and Type | Method and Description
    --- | ---
    `int` | `getElementIndex()`
    `void` | `setElementIndex(int index)` Point the cursor at element `index` of the array.

    - ### Methods inherited from interface com.io7m.jpra.runtime.java.JPRACursorByteReadableType

      `getByteOffsetObservable`

    - ### Methods inherited from interface com.io7m.jpra.runtime.java.JPRACursorType

      `getElementView`

- - ### Method Detail

    - #### getElementIndex

          int getElementIndex()

      Returns:
        The current element index

    - #### setElementIndex

          void setElementIndex(int index)
                        throws IndexOutOfBoundsException

      Point the cursor at element `index` of the array.

      Implementations are permitted to perform bounds checking, and must throw `IndexOutOfBoundsException` on out-of-bounds indices.

      Parameters:
        `index` - The index
      Throws:
        `IndexOutOfBoundsException` - Iff the implementation performs bounds checking and the index is out of range

Copyright © 2015 <code@io7m.com> http://io7m.com