T
- the class of objects stored in this storagepublic interface IntStorage<T> extends Storage<T>
Modifier and Type | Method and Description |
---|---|
T |
read(int address)
Reads the object stored at the specified address in this storage.
|
void |
remove(int address)
Removes the object stored at the specified address in this storage.
|
IntAddress<T> |
store(T object)
Stores an object in this storage.
|
IntAddress<T> store(T object) throws BucketStorageException
Storage
store
in interface Storage<T>
object
- the object to storeBucketStorageException
- if there was an error writing the dataT read(int address) throws BucketStorageException
address
- the address of the object to readBucketStorageException
- if there was an error reading the datavoid remove(int address) throws BucketStorageException, java.lang.UnsupportedOperationException
address
- the address of the object to removeBucketStorageException
- if there was an error deleting an objectjava.lang.UnsupportedOperationException
- if this storage does not support removal of objects