|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectmessif.buckets.storage.LongAddress<T>
T
- the class of objects that this address points topublic final class LongAddress<T>
Implementation of Address
for a storage that uses long addresses.
Storage
,
Serialized FormConstructor Summary | |
---|---|
LongAddress(LongStorage<T> storage,
long address)
Creates a new instance of IntAddress on the specified int storage. |
Method Summary | |
---|---|
long |
getAddress()
Returns the associated long address into the storage. |
T |
read()
Reads the object stored at this address from the associated storage. |
void |
remove()
Removes the object stored at this address from the associated storage. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public LongAddress(LongStorage<T> storage, long address)
storage
- the storage on which this address is validaddress
- the int address in the storage this IntAddress points toMethod Detail |
---|
public long getAddress()
public T read() throws BucketStorageException
Address
read
in interface Address<T>
BucketStorageException
- if there was an error reading the datapublic void remove() throws BucketStorageException, java.lang.UnsupportedOperationException
Address
remove
in interface Address<T>
BucketStorageException
- if there was an error deleting an object
java.lang.UnsupportedOperationException
- if this storage does not support removal of objects
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |