messif.buckets
Interface Removable<T>

Type Parameters:
T - the type of removable objects
All Known Subinterfaces:
IntStorageSearch<T>, LongStorageSearch<T>, ModifiableSearch<T>, StorageSearch<T>

public interface Removable<T>

Interface for classes that supports removal of a current object.


Method Summary
 T getCurrentObject()
          Returns the current object (that can be removed).
 void remove()
          Removes the current object.
 

Method Detail

getCurrentObject

T getCurrentObject()
                   throws java.util.NoSuchElementException
Returns the current object (that can be removed).

Returns:
the current object (that can be removed)
Throws:
java.util.NoSuchElementException - if there is no current object

remove

void remove()
            throws java.lang.IllegalStateException,
                   BucketStorageException
Removes the current object.

Throws:
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