Class FloatDiskDataStorage.TransposedMemoryArrayAccess

java.lang.Object
org.apfloat.spi.ArrayAccess
org.apfloat.internal.FloatMemoryArrayAccess
org.apfloat.internal.FloatDiskDataStorage.TransposedMemoryArrayAccess
All Implemented Interfaces:
Serializable, AutoCloseable
Enclosing class:
FloatDiskDataStorage

private class FloatDiskDataStorage.TransposedMemoryArrayAccess extends FloatMemoryArrayAccess
  • Field Details

    • serialVersionUID

      private static final long serialVersionUID
      See Also:
    • mode

      private int mode
    • startColumn

      private int startColumn
    • columns

      private int columns
    • rows

      private int rows
  • Constructor Details

    • TransposedMemoryArrayAccess

      public TransposedMemoryArrayAccess(int mode, float[] data, int startColumn, int columns, int rows)
  • Method Details

    • close

      public void close() throws ApfloatRuntimeException
      Description copied from class: ArrayAccess
      Close this array access and commit any changes to the underlying data storage if applicable.

      If the ArrayAccess was obtained in write mode, the changes are saved to the data storage. Note that even if the ArrayAccess was obtained for reading only, any changes made to the array data may still be committed to the data storage.

      Note that changes done to a sub-sequence array are not necessarily committed to the underlying data storage when the sub-sequence is closed, but only when the "base" ArrayAccess is closed.

      Specified by:
      close in interface AutoCloseable
      Overrides:
      close in class FloatMemoryArrayAccess
      Throws:
      ApfloatRuntimeException