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