Class FloatDiskDataStorage.MemoryArrayAccess
java.lang.Object
org.apfloat.spi.ArrayAccess
org.apfloat.internal.FloatMemoryArrayAccess
org.apfloat.internal.FloatDiskDataStorage.MemoryArrayAccess
- All Implemented Interfaces:
Serializable, AutoCloseable
- Enclosing class:
FloatDiskDataStorage
- Version:
- 1.8.0
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate intprivate intprivate intprivate static final longprivate int -
Constructor Summary
ConstructorsConstructorDescriptionMemoryArrayAccess(int mode, float[] data, int startColumn, int columns, int rows) -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()Close this array access and commit any changes to the underlying data storage if applicable.Methods inherited from class FloatMemoryArrayAccess
getData, getFloatData, subsequenceMethods inherited from class ArrayAccess
getDoubleData, getIntData, getLength, getLongData, getOffset
-
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
-
MemoryArrayAccess
public MemoryArrayAccess(int mode, float[] data, int startColumn, int columns, int rows)
-
-
Method Details
-
close
Description copied from class:ArrayAccessClose this array access and commit any changes to the underlying data storage if applicable.If the
ArrayAccesswas obtained in write mode, the changes are saved to the data storage. Note that even if theArrayAccesswas 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"
ArrayAccessis closed.- Specified by:
closein interfaceAutoCloseable- Overrides:
closein classFloatMemoryArrayAccess- Throws:
ApfloatRuntimeException
-