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