public interface StoreList extends OsidList
Like all OsidLists, StoreList provides a
means for accessing Store elements sequentially either one
at a time or many at a time. Examples:
while (sl.hasNext()) {
Store store = sl.getNextStore();
}
or
while (sl.hasNext()) {
Store[] stores = sl.getNextStores(sl.available());
}
| Modifier and Type | Method and Description |
|---|---|
Store |
getNextStore()
Gets the next
Store in this list. |
Store[] |
getNextStores(long n)
Gets the next set of
Store elements in this list. |
Store getNextStore() throws OperationFailedException
Store in this list. Store in this list. The
hasNext() method should be used to test that a next
Store is available before calling this method.IllegalStateException - no more elements available in
this listOperationFailedException - unable to complete requestmandatory - This method must be implemented. Store[] getNextStores(long n) throws OperationFailedException
Store elements in this list. The
specified amount must be less than or equal to the return from
available(). n - the number of Store elements requested which
must be less than or equal to available() Store elements. The
length of the array is less than or equal to the number
specified.IllegalStateException - no more elements available in
this listOperationFailedException - unable to complete requestmandatory - This method must be implemented.