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