public interface BlogList extends OsidList
Like all OsidLists, BlogList provides a
means for accessing Blog elements sequentially either one
at a time or many at a time. Examples:
while (bl.hasNext()) {
Blog blog = bl.getNextBlog();
}
or
while (bl.hasNext()) {
Blog[] blogs = bl.getNextBlogs(bl.available());
}
| Modifier and Type | Method and Description |
|---|---|
Blog |
getNextBlog()
Gets the next
Blog in this list. |
Blog[] |
getNextBlogs(long n)
Gets the next set of
Blog elements in this list which
must be less than or equal to the return from available(). |
Blog getNextBlog() throws OperationFailedException
Blog in this list. Blog in this list. The
hasNext() method should be used to test that a next
Blog is available before calling this method.IllegalStateException - no more elements available in
this listOperationFailedException - unable to complete requestmandatory - This method must be implemented. Blog[] getNextBlogs(long n) throws OperationFailedException
Blog elements in this list which
must be less than or equal to the return from available().
n - the number of Blog elements requested which
must be less than or equal to available() Blog 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.