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