Package org.apfloat.internal
Class FloatDiskDataStorage.FloatDiskArrayAccess
- java.lang.Object
-
- org.apfloat.spi.ArrayAccess
-
- org.apfloat.internal.FloatMemoryArrayAccess
-
- org.apfloat.internal.FloatDiskDataStorage.FloatDiskArrayAccess
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.AutoCloseable
- Enclosing class:
- FloatDiskDataStorage
private class FloatDiskDataStorage.FloatDiskArrayAccess extends FloatMemoryArrayAccess
-
-
Field Summary
Fields Modifier and Type Field Description private longfileOffsetprivate intmodeprivate static longserialVersionUID
-
Constructor Summary
Constructors Constructor Description FloatDiskArrayAccess(int mode, long fileOffset, int length)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()Close this array access and commit any changes to the underlying data storage if applicable.-
Methods inherited from class org.apfloat.internal.FloatMemoryArrayAccess
getData, getFloatData, subsequence
-
Methods inherited from class org.apfloat.spi.ArrayAccess
getDoubleData, getIntData, getLength, getLongData, getOffset
-
-
-
-
Field Detail
-
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
-
mode
private int mode
-
fileOffset
private long fileOffset
-
-
Constructor Detail
-
FloatDiskArrayAccess
public FloatDiskArrayAccess(int mode, long fileOffset, int length) throws ApfloatRuntimeException- Throws:
ApfloatRuntimeException
-
-
Method Detail
-
close
public void close() throws ApfloatRuntimeExceptionDescription 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 interfacejava.lang.AutoCloseable- Overrides:
closein classFloatMemoryArrayAccess- Throws:
ApfloatRuntimeException
-
-