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