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