messif.buckets
Interface Addible<T>

Type Parameters:
T - the type of added objects
All Known Subinterfaces:
IntStorageIndexed<T>, LongStorageIndexed<T>, ModifiableIndex<T>, ModifiableOrderedIndex<C,T>, StorageIndexed<T>
All Known Implementing Classes:
AbstractArrayIndex, AddressStorageIndex, AlgorithmStorageBucket, DatabaseStorage, DiskStorage, IntStorageIndex, LongStorageIndex, LongStorageMemoryIndex, MemoryStorage

public interface Addible<T>

Interface for classes that supports addition of an object.


Method Summary
 boolean add(T object)
          Adds the specified object to this instance.
 

Method Detail

add

boolean add(T object)
            throws BucketStorageException
Adds the specified object to this instance.

Parameters:
object - the object to be added
Returns:
true if the addition was successful
Throws:
BucketStorageException - if there was an error adding the object