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