Class DataStorage

java.lang.Object
org.apfloat.spi.DataStorage
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
DiskDataStorage, DoubleMemoryDataStorage, FloatMemoryDataStorage, IntMemoryDataStorage, LongMemoryDataStorage

public abstract class DataStorage extends Object implements Serializable
Generic data storage class.

Initially when a data storage is created, it is mutable (it can be modified). After the contents have been properly set, the user should call setReadOnly() to set the storage to be immutable. After this the data storage can be safely shared between different users.

Access to DataStorage objects is generally not internally synchronized. Accessing multiple non-overlapping parts of the storage concurrently with the getArray(int,long,int), getArray(int,int,int,int) or getTransposedArray(int,int,int,int) method and with iterators over non-overlapping parts is permitted. Invoking other methods must generally be externally synchronized.

Version:
1.8.1
Author:
Mikko Tommila
See Also: