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