T
- the type of removable objectspublic interface Removable<T>
Modifier and Type | Method and Description |
---|---|
T |
getCurrentObject()
Returns the current object (that can be removed).
|
void |
remove()
Removes the current object.
|
T getCurrentObject() throws java.util.NoSuchElementException
java.util.NoSuchElementException
- if there is no current objectvoid remove() throws java.lang.IllegalStateException, BucketStorageException
java.lang.IllegalStateException
- there is no current object to be removed
or the current object has been removed (e.g. by a previous
call to remove()
)BucketStorageException
- if there was an error removing the object