Interface | osid.billing.CustomerList | ||
---|---|---|---|
Implements | osid.OsidList | ||
Description |
Like all while (cl.hasNext()) { Customer customer = cl.getNextCustomer(); }or while (cl.hasNext()) { Customer[] customers = cl.getNextCustomers(cl.available()); } | ||
Method | getNextCustomer | ||
Description |
Gets the next | ||
Return | osid.billing.Customer | the next Customer in this list. The hasNext()
method should be used to test that a next Customer is available
before calling this method. | |
Errors | ILLEGAL_STATE | no more elements available in this list | |
OPERATION_FAILED | unable to complete request | ||
Compliance | mandatory | This method must be implemented. | |
Method | getNextCustomers | ||
Description |
Gets the next set of | ||
Parameters | cardinal | n | the number of Customer elements requested which must be less
than or equal to available() |
Return | osid.billing.Customer[] | an array of Customer elements. The length of
the array is less than or equal to the number specified. | |
Errors | ILLEGAL_STATE | no more elements available in this list | |
OPERATION_FAILED | unable to complete request | ||
Compliance | mandatory | This method must be implemented. |