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