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