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